Intelligent office building lock based on Bluetooth control
Technical Field
The invention belongs to the field of intelligent locks, and particularly relates to an intelligent office building lock based on Bluetooth control.
Background
The intelligent lock is different from a traditional mechanical lock, and is a lock which is more intelligent in the aspects of user identification, safety and manageability. The intelligent lock is an execution component for locking a door in an access control system, the intelligent lock in China just starts at present and is mainly concentrated in some high-end places, but the intelligent lock can become a representative of a mechanical lock, a coded lock and an induction lock, and the intelligent lock is naturally popularized and developed. No matter from its security performance or the change of people's quality of life, current tool to lock must be replaced to the intelligence lock.
The existing intelligent locks have a plurality of types, but still have the following limitations,
1. the degree of automation is not high, manual password input or manual unlocking is needed in the unlocking process, the unlocking process is complicated, and simple and automatic unlocking cannot be realized;
2. the invalid unlocking can not be fed back, and the owner can be informed in time.
Disclosure of Invention
The invention aims to solve the problems, and provides an intelligent office building lock based on Bluetooth control, which comprises: the method comprises the following steps: a bluetooth control system, the bluetooth control system comprising: a bluetooth control module, configured to establish wireless connection with multiple bluetooth terminals, and a user information storage matrix P (P1, P2.. Pn) is disposed inside the bluetooth control module, where P1 represents a first identified user information group, P2 represents a second identified user information group, and.. Pn represents an nth identified user information group, and the bluetooth control module controls information interaction between a user bluetooth terminal and the bluetooth control system, and the control method includes:
matching a Bluetooth terminal held by a user with the Bluetooth control module, inputting matching information into the Bluetooth control module, storing the matching information into the user information storage matrix P (P1, P2.. Pn), storing the user Bluetooth terminal information into a first identification user information group P1 after matching the Bluetooth terminal held by a first user, storing the user Bluetooth terminal information into a second identification user information group P2 after matching the Bluetooth terminal held by a second user, and storing the user Bluetooth terminal information into Pn after matching the Bluetooth terminal held by an nth user;
step two, the Bluetooth control module searches a Bluetooth terminal signal in real time, and when the Bluetooth control module does not start a multi-user control mode, the Bluetooth terminal signal is compared with information in the user information storage matrix P (P1, P2.. Pn);
if the searched Bluetooth terminal signals are matched with the Bluetooth terminal information stored in the user information storage matrix P (P1, P2.. Pn), connection is established with the corresponding Bluetooth equipment;
step three, the Bluetooth control module sends voice prompt information to the Bluetooth which establishes the connection in the step two;
step four, for the Bluetooth equipment which receives the voice prompt sent by the Bluetooth control module, when the Bluetooth equipment presses any key, the Bluetooth control module sends the Bluetooth detection qualified information of the user corresponding to the Bluetooth equipment to the Bluetooth control system according to the key feedback information;
the bluetooth control module, its inside many people that is provided with unblock matrix E (E1, E2.. En), wherein, E1 is first authorized user, and E2 is second authorized user.. En for nth authorized user, and the user passes through cell-phone application control bluetooth control module carries out many people's unblock, many people unblock process includes:
firstly, controlling the Bluetooth control module by using a mobile phone application program, and selecting user information from the user information storage matrix P (P1, P2.. Pn);
step two, the Bluetooth control module stores user information selected from a user information storage matrix P (P1, P2.. Pn) into the multi-user unlocking matrix E (E1, E2.. En), and simultaneously starts a multi-user unlocking mode which can be closed at any time through a mobile phone application program;
step three, the Bluetooth control module searches a Bluetooth terminal signal in real time and compares the Bluetooth terminal signal with information in the multi-person unlocking matrix E (E1, E2.. En);
if the searched Bluetooth terminal signal is matched with Bluetooth terminal information stored in a multi-person unlocking matrix E (E1, E2.. En), connection is established with Bluetooth equipment corresponding to the Bluetooth terminal signal;
step four, the Bluetooth control module detects whether Bluetooth equipment corresponding to users in the multi-user unlocking matrix E (E1, E2.. En) is connected with the Bluetooth control module in real time, and if the Bluetooth equipment corresponding to all the users in the multi-user unlocking matrix E (E1, E2.. En) is connected with the Bluetooth control module, the Bluetooth control module sends out qualified multi-user unlocking Bluetooth detection information to an information processing module;
the bluetooth control system further comprises an information processing module, the information processing module is connected with the lock cylinder, the information processing module is used for receiving judgment information sent by the bluetooth control module, the mobile terminal control module and the camera module, and controlling the opening and closing of the lock cylinder according to the judgment information, the information processing module is preset with an i-th user information judgment matrix Yi (Y1, Y2, Y3) i =1,2,3.. n, wherein Y1 represents i-th user bluetooth control module judgment information, Y1 is equal to 1 when the information processing module receives the i-th user bluetooth detection qualified information, Y1 is equal to 0 when not receiving, Y2 represents i-th user mobile terminal control module judgment information, Y2=1 when the information processing module receives the mobile terminal detection qualified information, Y2 is equal to 0 when not receiving, Y3 represents camera module judgment information matrix Y3(Y31, y32), wherein Y31 represents ith user face recognition decision information, Y32 represents ith user appearance detection decision information, Y31 is equal to 1 when the information processing module receives the ith user face recognition decision-qualified information, Y31 is equal to 0 when not received, Y32 is equal to 1 when the information processing module receives the ith user appearance detection decision information, Y32 is equal to 0 when not received, and the information processing module stores the received information in the ith user information decision matrix Yi (Y1, Y2, Y3).
Furthermore, the bluetooth control system further comprises a mobile terminal control module, the mobile terminal control module is used for establishing connection between the bluetooth control system and the mobile phone terminal of the user, a mobile terminal user storage matrix U (U1, U2... Un) is arranged inside the mobile terminal control module, wherein U1 represents the terminal information of the mobile phone of the first user, U2 represents the terminal information of the mobile phone of the second user, Un represents the terminal information of the mobile phone of the nth user, users in the mobile terminal user storage matrix U (U1, U2... Un) correspond to users in the user information storage matrix P (P1, P2.. Pn), a network connection unit is arranged inside the mobile terminal control module, and the network connection unit is used for establishing network connection between the mobile terminal control module and the mobile phone application program and controlling the network data interaction between the mobile terminal control module and the mobile phone terminal, the control method comprises the following steps;
step one, under the condition that the mobile terminal control module and a mobile phone terminal are in the same Wifi network, the mobile phone terminal is in first network connection with the mobile terminal control module through a mobile phone application program;
secondly, for the mobile terminal which establishes network connection with the mobile terminal control module, inputting user information into the mobile terminal user storage matrix U (U1, U2... Un) through a mobile phone application program, and acquiring the GPS positioning authority of the mobile terminal of the user;
and step three, the mobile terminal control module acquires the mobile terminal user storage matrix U (U1, U2... Un) in real time to record the positioning information of the user.
Furthermore, the bluetooth control system is also internally provided with a camera module, the camera module is connected with a camera arranged on the intelligent lock and used for controlling data exchange between the camera and the bluetooth control system, and a user shape information matrix W (W1, W2.. Wn) is arranged in the camera module, wherein W1 represents first outdoor shape information, and W2 represents second outdoor shape information.. Wn represents nth user shape information; the camera module judges the shape of a user in real time according to the information sent by the camera and uploads the judged information to the Bluetooth control system.
Furthermore, the camera module controls the data of the camera and the Bluetooth control system
The control step during switching comprises:
step one, entering a user shape information entry mode through a control button, entering user information, sending a voice prompt by the intelligent lock when entering the user shape information entry mode, prompting a user to carry out video shooting, and controlling the camera to shoot a facial image, a front standing posture, a side standing posture and a back standing posture of the user by the camera shooting module; and the shape of the shot picture is processed, during the processing, a coordinate system is established by the center of the shot person on the picture, and the detection area is divided into a first detection area, a second detection area and a third detection area,
for the detection area, acquiring the maximum X-axis coordinate X11, the minimum X-axis coordinate X12, the maximum Y-axis coordinate Y11 and the minimum X-axis coordinate Y12 of the human body image in the area, and calculating the maximum X-axis maximum difference S11 and the maximum Y-axis maximum difference S12 of the first detection area, wherein S11= X11-X12, S12= Y11-Y12,
for the second detection area, acquiring a maximum X-axis coordinate X21, a minimum X-axis coordinate X22, a maximum Y-axis coordinate Y21 and a minimum Y-axis coordinate Y22 of the human body image in the area, and calculating a maximum X-axis difference S21 and a maximum Y-axis difference S22, S21= X21-X22, S22= Y21-Y22 of the second detection area;
for the third detection area, acquiring the maximum Y-axis coordinate Y31 and the minimum Y-axis coordinate Y32 of the human body image in the area, and calculating the maximum Y-axis difference S32 of the second detection area, wherein S32= Y31-Y32; recording the processed information into a user profile information matrix W (W1, W2.. Wn);
step two, when a person is in front of the camera, the camera module controls the camera to quickly shoot a preset number of X0 photos;
thirdly, the camera module processes the photos shot in the second step, and for any photo in the photos, firstly, the facial area of the human body in the photo is intercepted to carry out face recognition judgment;
and when any photo in the photos is judged through face recognition, the control module sends face recognition detection qualified information to the central control module.
Further, in the third step, when all the photos do not pass the face recognition determination, the shape processing is performed on any one of the photos, the processed result is compared with all the photo data in the user shape information matrix W (W1, W2.. Wn), and for any one of the photos,
when the maximum difference value S11 in the X-axis direction and the maximum difference value S12 in the Y-axis direction of the first detection area are compared with the maximum difference value S11 in the X-axis direction and the maximum difference value S12 in the Y-axis direction of the first detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the first detection area of the photo is qualified;
when the maximum difference value S21 in the X-axis direction of the second detection area and the maximum difference value S22 in the Y-axis direction of the first detection area are compared with the maximum difference value S21 in the X-axis direction of the second detection area and the maximum difference value S22 in the Y-axis direction of the second detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the second detection area of the photo is qualified;
when the maximum difference value S31 in the X-axis direction of the third detection area and the maximum difference value S32 in the Y-axis direction of the first detection area are compared with the maximum difference value S31 in the X-axis direction of the third detection area and the maximum difference value S32 in the Y-axis direction of the third detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the third detection area of the photo is qualified;
and when the camera module detects that the first detection area, the second detection area and the third detection area of the picture are all qualified, judging that the picture is qualified, and when any one of the X0 pictures shot in the step two in the preset number is qualified, sending qualified shape detection information to the information processing module.
Further, when the information processing module controls the opening and closing of the lock cylinder, the information processing module comprises:
step one, if the detection information processing module detects whether the intelligent lock starts a multi-person unlocking mode, if the multi-person unlocking mode is started, whether the qualified information of the multi-person unlocking Bluetooth detection is received is judged, if the detection information processing module receives the qualified information of the multi-person unlocking Bluetooth detection, the information processing module directly controls and judges that the unlocking condition is met, the lock cylinder is controlled to be unlocked, and if the unlocking condition is not met, the lock cylinder is continuously locked; and if the intelligent lock does not start the multi-person unlocking mode, performing second-step detection.
Further, when the information processing module controls the opening and closing of the lock cylinder to perform the second detection, if the ith user face recognition judgment information Y31 in the ith user information judgment matrix Y (Y1, Y2, Y3) is detected, when the ith user face recognition judgment information Y31 is equal to 1, the information processing module judges that the unlocking condition is met, directly controls the lock cylinder to be opened, completes the unlocking, and when the ith user face recognition judgment information Y31 is equal to 0, the information processing module performs the third detection;
when the information processing module performs the third step of detection, the i-th user Bluetooth control module judgment information Y1 and the i-th user MT control module judgment information Y2 are detected simultaneously, when the i-th user Bluetooth control module judgment information Y1 is equal to 1 and the i-th user MT control module judgment information Y2 is equal to 1, the information processing module judges that an unlocking condition is met, the lock cylinder is controlled to be opened, when the i-th user Bluetooth control module judgment information Y1 is equal to 0 and the i-th user MT control module judgment information Y2 is equal to 0, the control module judges that the unlocking condition is not met, the lock cylinder continues to be locked, when the i-th user Bluetooth control module judgment information Y1 is equal to 1 and the i-th user MT control module judgment information Y2 is equal to 0 or the i-th user Bluetooth control module judgment information Y1 is equal to 0 and the i-th user MT is controlled by the lock cylinder When the module determines that the information Y2 is equal to 1, the information processing module performs the fourth detection step.
Further, when the information processing module controls the opening and closing of the lock cylinder to perform the fourth step of detection, the external shape detection judgment information Y32 is judged, and when Y32=1, the information processing module judges that the unlocking condition is met and controls the lock cylinder to be opened; when Y32=0, if the Bluetooth control module determines that information Y1 is equal to 1 and the mobile terminal control module determines that information Y2 is equal to 0 in the third step, the information processing module determines that unlocking is abnormal and sends unlocking abnormal information to the mobile terminal control module, the mobile terminal control module receives the unlocking abnormal information and sends Bluetooth unlocking abnormal information to the user mobile phone terminal, if the Bluetooth control module determines that information Y1 is equal to 0 and the mobile terminal control module determines that information Y2 is equal to 1 in the third step, it is determined that the unlocking condition is not met, and the information processing module continues to lock the lock cylinder.
Further, an emergency password unlocking unit is arranged in the lock core, the emergency password unlocking unit is connected with the key input area and used for receiving information input by the key input area and carrying out unlocking judgment, when a user inputs a password through the key input area, the emergency password unlocking unit is judged with a preset password, and if the preset password is the same as the input password, the emergency password unlocking unit judges that an unlocking condition is met and controls the lock core to unlock.
Compared with the prior art, the Bluetooth control system has the technical effects that the Bluetooth control system comprises the Bluetooth control module, the mobile terminal control module, the camera module and the information processing module, the Bluetooth control module realizes information interaction between the Bluetooth of a user and the Bluetooth control system of the intelligent lock, the Bluetooth control is added into the judgment condition of unlocking the intelligent lock, the unlocking judgment mode of the intelligent lock is increased, and the simplicity of unlocking the intelligent lock is improved; the Bluetooth control module is added with a multi-person unlocking mode, is conveniently applied to office building meeting rooms, and is unlocked by multiple persons to increase the safety and further improve the safety of the whole intelligent lock; the mobile terminal control module realizes the information interaction between a mobile phone end and a Bluetooth control system, detects the position information of a user in real time, the camera module is added with a face recognition function and a shape recognition function, judges unlocking conditions by face recognition, is more accurate and safe, provides an auxiliary shape judgment function when the face information shot by a camera is incomplete, simplifies the problem that a user needs to align the face for many times in the face recognition process, combines the judgment information of other modules, adopts different detection sequences and priority levels to the judgment information, comprehensively judges whether the unlocking conditions are met or not, and comprehensively judges the judgment conditions sent by the camera module through the Bluetooth control module, the mobile terminal control module and the camera module so that the judgment result is more accurate, stable and quick, and can carry out judgment at will under the condition that one module judges the information is abnormal, the reliability and the stability of the intelligent lock are improved, and then, the intelligent lock can be unlocked under automatic control only through simple operation of a user under the common condition.
Particularly, the Bluetooth control module realizes information interaction between the user Bluetooth and the intelligent lock Bluetooth control system, the user information storage matrix P (P1, P2.. Pn) is arranged to realize the input of the Bluetooth information of a plurality of people in a family, the input of the Bluetooth signals is used as one of unlocking judgment conditions, the unlocking judgment is quick and convenient, the judgment mode is safe and reliable, the automatic access of the Bluetooth signals does not need the user to carry out complex operation, the automation of the intelligent lock is realized, and meanwhile, the user Bluetooth terminal is convenient to carry, so that the use experience of the user is improved.
Particularly, the Bluetooth control module is added with a multi-person unlocking mode under the control of Bluetooth, so that the intelligent lock is applied to office meeting rooms, the unlocking is performed by multiple persons, the unlocking safety and reliability are improved, meanwhile, the unlocking process in the multi-person unlocking mode is simplified to be only performed through Bluetooth unlocking, and the unlocking speed of the intelligent lock is increased.
Particularly, according to the mobile terminal control module, the mobile terminal user storage matrix U (U1, U2... Un) of the mobile terminal control module inputs information through an internet computer program, so that the use of family members is convenient and quick, and meanwhile, the mobile terminal control module realizes information interaction between a mobile phone terminal and a Bluetooth control system, realizes real-time feedback of unlocking conditions, facilitates users to know the real-time unlocking conditions, and can control an intelligent lock to realize automatic unlocking by detecting the position information of the users without any operation of the users and combining judgment information of other modules, so that the automation degree of the intelligent lock is improved.
In particular, the camera module of the invention realizes the information interaction between the camera and the Bluetooth control system, can realize the face recognition function and the shape recognition function, uses the face recognition function as one of the judgment conditions, utilizes the rapidness and accuracy of the face recognition to improve the safety and the reliability of the intelligent lock, simultaneously can automatically unlock the intelligent lock after the face recognition is finished without any operation judgment of a user, improves the user experience, simultaneously, has the shape recognition function to make up the problem that the face information obtained by the camera is incomplete sometimes, processes the picture after the shape recognition is shot for a plurality of times, simultaneously divides the detection area, detects the maximum axial coordinate and the minimum axial coordinate of the detection area to judge the shape of the user, judges the picture is qualified when the three detection areas of the same picture are judged to be qualified, and is more convenient and quicker, the method is easy to realize, and has certain reliability in combination with the judgment information of other modules.
Particularly, the information processing module of the invention is combined with the Bluetooth control module, the mobile terminal control module and the judgment information sent by the camera module to judge the unlocking condition, is safe and reliable, adopts different detection sequences and priority levels for the judgment information, can carry out judgment under the condition that the judgment information of one module is abnormal, improves the reliability and stability of the intelligent lock, and then can realize automatic control unlocking only by simple operation of a user under the normal condition of the intelligent lock, does not need to manually input a password or press a fingerprint, and realizes automatic unlocking of the intelligent lock.
Drawings
Fig. 1 is a functional block diagram of an intelligent office building lock bluetooth control system based on bluetooth control according to an embodiment of the present invention;
fig. 2 is a structure diagram of an intelligent office building lock based on bluetooth control according to an embodiment of the present invention.
Detailed Description
The above and further features and advantages of the present invention are described in more detail below with reference to the accompanying drawings.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and are not intended to limit the scope of the present invention.
It should be noted that in the description of the present invention, the terms of direction or positional relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are only for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, which is a functional block diagram of an intelligent office building lock bluetooth control system based on bluetooth control according to an embodiment of the present invention, a full-automatic intelligent home lock provided in this embodiment includes a bluetooth control system, where the bluetooth control system includes:
the Bluetooth connection module is used for establishing wireless connection with a plurality of Bluetooth terminals, a user information storage matrix P (P1, P2.. Pn) is arranged in the Bluetooth connection module, wherein P1 represents a first identification user information group, P2 represents a second identification user information group, and.. Pn represents an nth identification user information group, and the Bluetooth control module is used for controlling information interaction between the user Bluetooth terminals and a Bluetooth control system;
the Bluetooth control system is connected with a user mobile phone terminal through a mobile terminal control module, a mobile terminal user storage matrix U (U1, U2... Un) is arranged in the mobile terminal control module, wherein U1 represents first user mobile phone terminal information, U2 represents second user mobile phone terminal information, Un represents nth user mobile phone terminal information, a network connection unit is arranged in the mobile terminal control module and used for enabling the mobile terminal control module to be in network connection with a mobile phone application program and controlling network data interaction between the mobile terminal control module and the mobile phone terminal
The camera module is connected with a camera arranged on the intelligent lock and used for exchanging data with the camera, and a user shape information matrix W (W1, W2.. Wn) is arranged in the camera module, wherein W1 represents first outdoor shape information, and W2 represents second outdoor shape information.. Wn represents nth user shape information; the camera module judges the shape of a user in real time according to the information sent by the camera and uploads the judged information to the information processing module;
an information processing module, connected to the lock cylinder, for receiving the judgment information from the bluetooth control module, the mobile terminal control module, and the camera module, and controlling the opening and closing of the lock cylinder according to the judgment information, wherein the information processing module is preset with an i-th user information judgment matrix Y (Y1, Y2, Y3), wherein Y1 represents i-th user bluetooth control module judgment information, Y1 is equal to 1 when the information processing module receives the bluetooth qualified detection information, Y1 is equal to 0 when not received, Y2 represents i-th user mobile terminal control module judgment information, Y2=1 when the information processing module receives the mobile terminal qualified detection information, Y2 is equal to 0 when not received, Y3 represents camera module judgment information matrix Y3(Y31, Y32), wherein Y31 represents i-th user face identification judgment information, y32 represents the i-th user shape detection decision information, Y31 is equal to 1 when the face recognition decision acceptance information is received by the information processing module, Y31 is equal to 0 when not received, Y32 is equal to 1 when the i-th user shape detection decision information is received by the information processing module, and Y32 is equal to 0 when not received.
Specifically, referring to fig. 2, which is a structure diagram of an intelligent lock for an office building based on bluetooth control according to an embodiment of the present invention, an intelligent lock body 1 is an oval structure, and includes a camera 3, a display screen 2, and a key input area 4, where the display screen 2 is disposed on an upper side of the intelligent lock body 1, the key input area 4 is disposed on a lower side of the display screen 2, the camera 3 is disposed between the display screen 4 and the key input area 4, and a handle 5 is disposed on one side of the key input area 4.
Specifically, the bluetooth control module is used for establishing wireless connection with a plurality of bluetooth terminals, and a user information storage matrix P (P1, P2.. Pn) is arranged in the bluetooth control module, wherein P1 represents a first identified user information group, P2 represents a second identified user information group, and.. Pn represents an nth identified user information group, and the bluetooth control module controls information interaction between the user bluetooth terminals and the bluetooth control system, and the control method comprises the following steps:
matching a Bluetooth terminal held by a user with the Bluetooth control module, inputting matching information into the Bluetooth control module, storing the matching information into the user information storage matrix P (P1, P2.. Pn), storing the user Bluetooth terminal information into a first identification user information group P1 after matching the Bluetooth terminal held by a first user, storing the user Bluetooth terminal information into a second identification user information group P2 after matching the Bluetooth terminal held by a second user, and storing the user Bluetooth terminal information into Pn after matching the Bluetooth terminal held by an nth user;
step two, the Bluetooth control module searches a Bluetooth terminal signal in real time, and when the Bluetooth control module does not start a multi-user control mode, the Bluetooth terminal signal is compared with information in the user information storage matrix P (P1, P2.. Pn);
if the searched Bluetooth terminal signals are matched with the Bluetooth terminal information stored in the user information storage matrix P (P1, P2.. Pn), connection is established with the corresponding Bluetooth equipment;
step three, the Bluetooth control module sends voice prompt information to the Bluetooth which establishes the connection in the step two;
and step four, for the Bluetooth equipment which sends the voice prompt by the Bluetooth control module, when the Bluetooth equipment presses any key, the Bluetooth control module sends the Bluetooth detection qualified information of the user corresponding to the Bluetooth equipment to the Bluetooth control system.
Specifically, the bluetooth control module is provided with many people inside and unlocks matrix E (E1, E2.. En), wherein, E1 is first authorized user, and E2 is second authorized user.. En is nth authorized user, and the user passes through cell-phone application control bluetooth control module carries out many people's unblock, many people's unblock process includes:
firstly, adjusting unlocking judgment conditions of the Bluetooth control module by using a mobile phone application program, and selecting a user from the user information storage matrix P (P1, P2.. Pn);
step two, the Bluetooth control module stores the user information selected from the user information storage matrix P (P1, P2.. Pn) into the multi-user unlocking matrix E (E1, E2.. En), and simultaneously sends information for starting a multi-user unlocking mode to the information processing module;
step three, the Bluetooth control module searches a Bluetooth terminal signal in real time and compares the Bluetooth terminal signal with information in the multi-person unlocking matrix E (E1, E2.. En);
if the searched Bluetooth terminal signal is matched with Bluetooth terminal information stored in a multi-person unlocking matrix E (E1, E2.. En), connection is established with Bluetooth equipment corresponding to the Bluetooth terminal signal;
step four, the Bluetooth control module detects whether the Bluetooth equipment corresponding to the users in the multi-user unlocking matrix E (E1, E2.. En) is connected with the Bluetooth control module in real time, and if the Bluetooth equipment corresponding to all the users in the multi-user unlocking matrix E (E1, E2.. En) is connected with the Bluetooth control module, the Bluetooth control module sends out qualified multi-user unlocking Bluetooth detection information to the Bluetooth control system.
Specifically, the bluetooth control system is connected with a user mobile phone terminal through a mobile terminal control module, a mobile terminal user storage matrix U (U1, U2... Un) is arranged in the mobile terminal control module, wherein U1 represents first user mobile phone terminal information, U2 represents second user mobile phone terminal information.. Un represents nth user mobile phone terminal information, users in the mobile terminal user storage matrix U (U1, U2... Un) correspond to users in the user information storage matrix P (P1, P2.. Pn), and a network connection unit is arranged in the mobile terminal control module and used for enabling the mobile terminal control module to establish network connection with a mobile phone application program and controlling network data interaction between the mobile terminal control module and the mobile phone terminal, the control method comprises the following steps;
step one, under the condition that the mobile terminal control module and a mobile phone terminal are in the same Wifi network, the mobile phone terminal is in first network connection with the mobile terminal control module through a mobile phone application program;
secondly, for the mobile terminal which establishes network connection with the mobile terminal control module, inputting user information into the mobile terminal user storage matrix U (U1, U2... Un) through a mobile phone application program, and acquiring the GPS positioning authority of the mobile terminal of the user;
and step three, the mobile terminal control module acquires the mobile terminal user storage matrix U (U1, U2... Un) in real time to record the positioning information of the user.
And step four, the mobile terminal receives the positioning information of the user recorded in the user storage matrix U (U1, U2... Un), and for any user recorded in the user storage matrix U (U1, U2... Un), when the position represented by the positioning information of the user is in a preset range L0, the mobile terminal control module sends the mobile terminal passing information of the ith user to the Bluetooth control system.
Specifically, the camera module is connected with a camera arranged on the intelligent lock and used for exchanging data with the camera, and a user shape information matrix W (W1, W2.. Wn) is arranged in the camera module, wherein W1 represents first user shape information, and W2 represents second user shape information.. Wn represents nth user shape information; the camera module judges the shape of a user in real time according to the information sent by the camera and uploads the judged information to the Bluetooth control system, and when the camera module judges, the camera module comprises the following steps,
step one, entering a user shape information entry mode through a control button, entering user information, sending a voice prompt by the intelligent lock when entering the user shape information entry mode, prompting a user to carry out video shooting, and controlling the camera to shoot a facial image, a front standing posture, a side standing posture and a back standing posture of the user by the camera shooting module; and the shape of the shot picture is processed, during the processing, a coordinate system is established by the center of the shot person on the picture, and the detection area is divided into a first detection area, a second detection area and a third detection area,
for the detection area, acquiring the maximum X-axis coordinate X11, the minimum X-axis coordinate X12, the maximum Y-axis coordinate Y11 and the minimum X-axis coordinate Y12 of the human body image in the area, and calculating the maximum X-axis maximum difference S11 and the maximum Y-axis maximum difference S12 of the first detection area, wherein S11= X11-X12, S12= Y11-Y12,
for the second detection area, acquiring a maximum X-axis coordinate X21, a minimum X-axis coordinate X22, a maximum Y-axis coordinate Y21 and a minimum Y-axis coordinate Y22 of the human body image in the area, and calculating a maximum X-axis difference S21 and a maximum Y-axis difference S22, S21= X21-X22, S22= Y21-Y22 of the second detection area;
for the third detection area, acquiring the maximum Y-axis coordinate Y31 and the minimum Y-axis coordinate Y32 of the human body image in the area, and calculating the maximum Y-axis difference S32 of the second detection area, wherein S32= Y31-Y32; recording the processed information into a user profile information matrix W (W1, W2.. Wn);
step two, when a person is in front of the camera, the camera module controls the camera to quickly shoot a preset number of X0 photos;
thirdly, the camera module processes the photos shot in the second step, firstly cuts out the facial area of the human body in the photos for face recognition judgment for any photo in the photos,
when any photo in the photos is judged through face recognition, the control module sends face recognition detection qualified information of a user corresponding to the photo to the central control module,
when all the photos do not pass the face recognition judgment, the shape processing is carried out on any one of the photos, the processed result is compared with all the photo data in the user shape information matrix W (W1, W2.. Wn), and any one of the photos is subjected to comparison
When the maximum difference value S11 in the X-axis direction and the maximum difference value S12 in the Y-axis direction of the first detection area are compared with the maximum difference value S11 in the X-axis direction and the maximum difference value S12 in the Y-axis direction of the first detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the first detection area of the photo is qualified;
when the maximum difference value S21 in the X-axis direction of the second detection area and the maximum difference value S22 in the Y-axis direction of the first detection area are compared with the maximum difference value S21 in the X-axis direction of the second detection area and the maximum difference value S22 in the Y-axis direction of the second detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the second detection area of the photo is qualified;
when the maximum difference value S31 in the X-axis direction of the third detection area and the maximum difference value S32 in the Y-axis direction of the first detection area are compared with the maximum difference value S31 in the X-axis direction of the third detection area and the maximum difference value S32 in the Y-axis direction of the third detection area of the photo of any user in the user profile information matrix W (W1, W2.. Wn), and then the error is smaller than the preset difference value D1, the camera module determines that the detection of the third detection area of the photo is qualified;
and when the camera module detects that the first detection area, the second detection area and the third detection area of the picture are all qualified, judging that the picture is qualified, and when any one of the X0 pictures shot in the step two in the preset number is qualified, sending shape detection qualified information of the ith user corresponding to the picture to the information processing module.
Specifically, the bluetooth control system is provided with an information processing module, the information processing module is connected with a lock cylinder, the information processing module is used for receiving judgment information sent by the bluetooth control module, a mobile terminal control module and a camera module, and controlling the opening and closing of the lock cylinder according to the judgment information, the information processing module is preset with an i-th user information judgment matrix Yi (Y1, Y2, Y3) i =1,2,3.. n, wherein Y1 represents i-th user bluetooth control module judgment information, Y1 is equal to 1 when the information processing module receives i-th user bluetooth detection qualified information, Y1 is equal to 0 when not receiving, Y2 represents i-th user mobile terminal control module judgment information, Y2=1 when the information processing module receives the mobile terminal detection qualified information, Y2 is equal to 0 when not receiving, y3 denotes a camera module determination information matrix Y3(Y31, Y32), where Y31 denotes the ith user face recognition determination information, Y32 denotes the ith user shape detection determination information, Y31 is equal to 1 when the information processing module receives the ith user face recognition determination pass information, Y31 is equal to 0 when not received, Y32 is equal to 1 when the information processing module receives the ith user shape detection determination information, and Y32 is equal to 0 when not received, and the information processing module stores the received information in the ith user information determination matrix Yi (Y1, Y2, Y3).
Specifically, when the information processing module controls the opening and closing of the key cylinder,
the method comprises the steps that firstly, a detection information processing module detects whether an intelligent lock starts a multi-person unlocking mode, if the multi-person unlocking mode is started, whether qualified information of multi-person unlocking Bluetooth detection is received or not is judged, if the detection information processing module receives the qualified information of multi-person unlocking Bluetooth detection, the information processing module directly controls and judges that unlocking conditions are met, the lock cylinder is controlled to be unlocked, and if the qualified information of multi-person unlocking Bluetooth detection is not received, the lock cylinder is continuously locked; if the intelligent lock does not start the multi-person unlocking mode, performing second-step detection;
secondly, if the ith user face recognition judgment information Y31 in the ith user information judgment matrix Y (Y1, Y2 and Y3) is detected, when the ith user face recognition judgment information Y31 is equal to 1, the information processing module judges that an unlocking condition is met, directly controls the lock cylinder to be opened, completes unlocking, and when the ith user face recognition judgment information Y31 is equal to 0, the information processing module performs the third detection step;
when the information processing module performs the third step of detection, the i-th user Bluetooth control module judgment information Y1 and the i-th user MT control module judgment information Y2 are detected simultaneously, when the i-th user Bluetooth control module judgment information Y1 is equal to 1 and the i-th user MT control module judgment information Y2 is equal to 1, the information processing module judges that an unlocking condition is met, the lock cylinder is controlled to be opened, when the i-th user Bluetooth control module judgment information Y1 is equal to 0 and the i-th user MT control module judgment information Y2 is equal to 0, the control module judges that the unlocking condition is not met, the lock cylinder continues to be locked, when the i-th user Bluetooth control module judgment information Y1 is equal to 1 and the i-th user MT control module judgment information Y2 is equal to 0 or the i-th user Bluetooth control module judgment information Y1 is equal to 0 and the i-th user MT is controlled by the lock cylinder When the module judgment information Y2 is equal to 1, the information processing module carries out the fourth step of detection;
when the information processing module carries out the fourth step of detection, the ith user shape detection judgment information Y32 is judged, and when Y32=1, the information processing module judges that an unlocking condition is met and controls the lock cylinder to be opened; when Y32=0, if the i-th user Bluetooth control module judges that information Y1 is equal to 1 and the i-th user mobile terminal control module judges that information Y2 is equal to 0 in the second step, the information processing module judges that the unlocking is abnormal and sends unlocking abnormal information to the mobile terminal control module, the mobile terminal control module receives the unlocking abnormal information and sends Bluetooth unlocking abnormal information to the user mobile phone terminal, if the i-th user Bluetooth control module judges that information Y1 is equal to 0 and the i-th user mobile terminal control module judges that information Y2 is equal to 1 in the second step, the information processing module determines that the unlocking condition is not met, and the information processing module continues to lock the lock cylinder.
Specifically, the information processing module is further internally provided with an emergency password unlocking unit, the emergency password unlocking unit is connected with the key input area and used for receiving information input by the key input area and carrying out unlocking judgment, when a user inputs a password through the key input area, the emergency password unlocking unit judges a preset password, and if the preset password is the same as the input password, the emergency password unlocking unit judges that an unlocking condition is met and controls the lock cylinder to unlock.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.