CN109147116A - The method that smart lock and control smart lock are opened - Google Patents
The method that smart lock and control smart lock are opened Download PDFInfo
- Publication number
- CN109147116A CN109147116A CN201810828773.7A CN201810828773A CN109147116A CN 109147116 A CN109147116 A CN 109147116A CN 201810828773 A CN201810828773 A CN 201810828773A CN 109147116 A CN109147116 A CN 109147116A
- Authority
- CN
- China
- Prior art keywords
- processor
- module
- recognized
- images
- smart lock
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000001514 detection method Methods 0.000 claims abstract description 26
- 238000001727 in vivo Methods 0.000 claims abstract description 22
- 230000009467 reduction Effects 0.000 claims description 12
- 230000005611 electricity Effects 0.000 claims description 10
- 239000000284 extract Substances 0.000 claims description 8
- 230000008901 benefit Effects 0.000 claims description 3
- 230000006837 decompression Effects 0.000 claims description 3
- 230000003287 optical effect Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 22
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 18
- 238000004458 analytical method Methods 0.000 description 10
- 229910052742 iron Inorganic materials 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 239000002985 plastic film Substances 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 210000003128 head Anatomy 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000005012 migration Effects 0.000 description 2
- 238000013508 migration Methods 0.000 description 2
- 230000002618 waking effect Effects 0.000 description 2
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 210000004709 eyebrow Anatomy 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000011049 filling Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000005389 magnetism Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 210000000216 zygoma Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00563—Electronically 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
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/0001—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
- E05B47/0002—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof with electromagnets
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B47/0001—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof
- E05B47/0012—Operating or controlling locks or other fastening devices by electric or magnetic means with electric actuators; Constructional features thereof with rotary electromotors
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05B—LOCKS; ACCESSORIES THEREFOR; HANDCUFFS
- E05B47/00—Operating or controlling locks or other fastening devices by electric or magnetic means
- E05B2047/0048—Circuits, feeding, monitoring
- E05B2047/0057—Feeding
- E05B2047/0058—Feeding by batteries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/40—Spoof detection, e.g. liveness detection
- G06V40/45—Detection of the body part being alive
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The invention discloses a kind of methods that smart lock and control smart lock are opened.The smart lock includes: image capture module, is connect with processor, for acquiring the images to be recognized of shelter;Infrared supplementary lighting module, connect with processor, for emitting infrared light when acquiring images to be recognized;Processor, it is connect with clutch control module, face in images to be recognized for identification, and In vivo detection is carried out to shelter when including face, when being detected as living body, the face characteristic in images to be recognized is extracted, is matched with pre-stored face characteristic, and sends control signal of unlocking to clutch control module in successful match;Clutch control module, for controlling signal according to unlocking, control driving mechanical lock is unlocked;Power supply, for powering to image capture module, infrared supplementary lighting module, processor and clutch control module.The present invention improves safety and the discrimination of smart lock by recognition of face and In vivo detection.
Description
Technical field
The present embodiments relate to a kind of methods that intelligent lock technology more particularly to smart lock and control smart lock are opened.
Background technique
With the promotion and popularization of intelligent Community and smart home in recent years, this change with rapid changepl. never-ending changes and improvements also occurs for smart lock
Change, smart lock, which refers to, is different from tradition machinery lock, in user's identification, safety, the more intelligentized lockset of managerial aspect.Intelligence
Can lock is the execution unit locked a door in access control system.
Currently, Fingerprint Lock with its safety and convenience occupies mass market in smart lock market, advantage includes: peace
Quan Xing, since fingerprint has uniqueness, there are two duplicate fingerprints in the whole world;Convenience, it is not necessary to carrying keys, one
The fingerprint of people is unchangeable, the worry of the very convenient preparation key for eliminating common lock of fingerprint management;Scalability can accommodate
Multiple fingerprints, and fingerprint can be registered at any time, manage fingerprint;Discrimination is high.
Although Fingerprint Lock has the above advantages, Fingerprint Lock remains following disadvantage: fingerprint is easy to be replicated,
And fingerprint head scan area is big, is more easily damaged, and leads to improper unlocking, threatens to exist to safety;Finger is drawn
Broken, phenomena such as peeling, can cause identify.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method that smart lock and control smart lock are opened, to improve intelligence
The safety of lock and discrimination.
In a first aspect, the smart lock includes: processor, Image Acquisition the embodiment of the invention provides a kind of smart lock
Module, infrared supplementary lighting module, clutch control module, mechanical lock and power supply;
Described image acquisition module is connected to the processor, and for acquiring the images to be recognized of shelter, and is sent to
The processor;
The infrared supplementary lighting module is connected to the processor, for emitting infrared light when acquiring images to be recognized;
The processor is connect with the clutch control module, for identification the face in the images to be recognized, and
In vivo detection is carried out to the shelter when including face in the images to be recognized, when being detected as living body, described in extraction
Face characteristic in images to be recognized is matched with pre-stored face characteristic, and control of unlocking is sent in successful match
Signal processed is to clutch control module;
The clutch control module is used to control signal according to the unlocking, and control driving mechanical lock is unlocked;
The power supply respectively with described image acquisition module, infrared supplementary lighting module, processor and the clutch control mould
The feeder ear of block connects, for described image acquisition module, infrared supplementary lighting module, processor and the clutch control module
Power supply.
Second aspect, the embodiment of the invention also provides a kind of methods that control smart lock is opened, which comprises
Emit infrared light by infrared supplementary lighting module, and acquire the images to be recognized of shelter by image capture module,
And it is sent to processor;
Detect the face in the images to be recognized by processor, and in the images to be recognized include face when pair
The shelter carries out In vivo detection and extracts the face characteristic in the images to be recognized when being detected as living body, and deposits in advance
The face characteristic of storage is matched, and sends control signal of unlocking to clutch control module in successful match;
Signal control driving mechanical lock is controlled according to the unlocking by clutch control module to unlock.
The technical solution of the embodiment of the present invention acquires images to be recognized by image capture module, and infrared supplementary lighting module exists
Infrared light is sent when acquiring images to be recognized, processor identifies the face in images to be recognized, and includes people in images to be recognized
In vivo detection is carried out when face, when being detected as living body, extracts the face characteristic in images to be recognized, it is special with pre-stored face
Sign is matched, and control signal of unlocking is sent when successful match to clutch control module, clutch control module control driving
Mechanical lock is unlocked, to improve safety and the discrimination of smart lock by recognition of face and In vivo detection, is avoided logical
It crosses photo and carries out identification unlocking, and the identification under dark situations may be implemented by infrared supplementary lighting module.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram for smart lock that the embodiment of the present invention one provides;
Fig. 2 is the structural schematic diagram of the power supply in smart lock provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of method that control smart lock is opened provided by Embodiment 2 of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
In description, only some but not all contents related to the present invention are shown in the drawings.
Embodiment one
Fig. 1 is a kind of structural schematic diagram for smart lock that the embodiment of the present invention one provides, smart lock described in the present embodiment
It is to be controlled by recognition of face, as shown in Figure 1, smart lock described in the present embodiment includes: processor 10, Image Acquisition mould
Block 20, infrared supplementary lighting module 30, clutch control module 40, mechanical lock 50 and power supply 60.
Wherein, image capture module 20 is connect with processor 10, for acquiring the images to be recognized of shelter, and is sent to
Processor 10;
Infrared supplementary lighting module 30 is connect with processor 10, for emitting infrared light when acquiring images to be recognized;
Processor 10 is connect with clutch control module 40, for identification the face in the images to be recognized, and in institute
In vivo detection is carried out to the shelter when stating in images to be recognized including face, when being detected as living body, is extracted described wait know
Face characteristic in other image, is matched with pre-stored face characteristic, and control letter of unlocking is sent in successful match
Number give clutch control module 40;
Clutch control module 40 is used to control signal according to the unlocking, and control driving mechanical lock 50 is unlocked;
Power supply 60 respectively with image capture module 20, infrared supplementary lighting module 30, processor 10 and clutch control module 40
Feeder ear connection, for image capture module 20, infrared supplementary lighting module 30, processor 10 and clutch control module 40 supply
Electricity.
Wherein, the connection of processor 10 and image capture module 20, infrared supplementary lighting module 30, clutch control module 40 is
It is connected by bus, processing 10 is located on core board, and core board draws each interface of processor, core board, Image Acquisition
Module 20, infrared supplementary lighting module 30, clutch control module 40 are located on preceding mainboard, are connected by the interface on preceding mainboard.Electricity
Source is located on rear mainboard, is connect by reserved interface with the modules on preceding mainboard.It afterwards further include channel switch on mainboard
And electronic lock switch, progress recognition of face is not had to when channel switch is opened to be unlocked, and user is preparatory when electronic lock switch is opened
User in the grouping of setting can be unlocked by recognition of face, and the user of other groupings cannot be unlocked by recognition of face.
It includes waking up key that the smart lock is also optional, carries out recognition of face and unlocking for waking up smart lock.Wherein, processor 10 can
Can work steadily in the long term using the dsp processor of high-performance, low-power consumption.Smart lock supports auto sleep mode, environmental protection
Energy conservation.
Infrared supplementary lighting module 30 is by the controlled lamp group in 2 tunnels at wherein controlled lamp has 2*10 all the way, the controlled lamp of another way has 1*
7, totally 27 controlled lamps.
It can use dynamic local Signature Analysis Techique (Dynamic Local Feature when extracting face characteristic
Analysis, DLFA) identify face characteristic.Dynamic local Signature Analysis Techique, first to the images to be recognized including face
It is pre-processed, in order to noise excessively high in images to be recognized is removed, by the images to be recognized peripheral adjustment of input
The method migration of detection is at two-symbol image, then extracts face texture, is then come using Local Features Analysis method
The edge shadow and skin line for handling face, to identify face characteristic.
Wherein, Local Features Analysis (Local Feature Analysis, LFA) is a kind of class indicated with local feature
It is similar to build the technology of building blocks statistics, can all be formed by the structural unit block synthesis much simplified based on all people's face.LFA makes
Distinguish a face with 32 to 50 cell block regions, the point most commonly of selection includes nose, eyes, mouth and specific
Bone curvature difference, such as cheek.These cell blocks are formed using complicated statistical technique, they represent entire face,
It usually crosses over multiple pixels and represents universal facial contours, but be not the face feature on ordinary meaning.Determine one
A face depends not only on characteristics unit block, further depends on their geometry (such as shape and relevant position).Pass through this
The characteristic of face is corresponded to a kind of numerical expression of complexity by kind mode, LFA, so that it may carry out recognition of face.LFA face
It includes mouth, nose, eyebrow, jaw line and cheekbone that identifying system, which respectively corresponds acceptable area,.With dynamic edge analysis side
The shape of face information that method obtains can be reduced the influence of different light environments, and skin line information provides the thin of standardized face characteristic
Section.The two kinds of information combinations of the shape of face and skin line are compared, are counted with Local Features Analysis (LFA) algorithm again 173 spies of face
Point is levied, it, can be hundred no matter being that can obtain a very high discrimination under which kind of light environment when registration and identification face
Wan Renzhong accurately recognizes a people.
The working principle of the smart lock is: when smart lock is waken up, image capture module acquires the to be identified of shelter
Image, processor by face recognition algorithms identify images to be recognized in face, in images to be recognized include face when pair
Shelter carries out In vivo detection, and the face characteristic in images to be recognized is extracted when being detected as living body, by the face extracted spy
Sign is matched with pre-stored face characteristic, and unlocking control signal is sent if successful match and gives clutch control mould
Block controls driving mechanical lock by clutch control module and unlocks;If not being living body or face characteristic through detection shelter
Match it is unsuccessful, will not generate unlocking control signal.Smart lock is using completely to the invisible secondary light source skill of no damage to human body
It can well identify art, day and night, it can be with non-stop run in 24 hours.
Clutch control module 40 includes clutch, and clutch internal structure includes shell, electromagnet, iron plate, gasket, modeling
Tablet and connector, wherein casing is provided with through-hole on electromagnet among electromagnet, which is placed with connection
Part is provided with irony gasket on connector, there is round iron plate on gasket, in round iron plate is wrapped in by plastic sheet and shell;Even
Fitting side is provided with gear, and centre is arranged groove, is placed with spring in groove;The connector other side is provided with cross and leads
Rail.
After processor determines face characteristic successful match, output, which is unlocked, controls signal, controls to clutch control module
It is powered, the electromagnet in clutch control module attracts iron plate, and iron plate band mobile gasket and connector push forward, connector and machine
Tool is locked connection square column at intracorporal door handle and is slided by cross guide rail.The magnetic force of electromagnet is greater than at door handle and connects at this time
The elastic force of spring between square column is connect, square column is connect at connector and lock core and carries out engaged gears, has at this moment just reached door handle and has opened
The purpose of lock.
Connector is connect square column with lock core and flicked by spring after power-off, and connector is connected on square column at door handle and carried out
Sliding drives iron plate to move backward with gasket, when iron plate reaches plastic sheet position, since plastic sheet and shell are adhesively fixed, and resistance
Only iron plate continues to move back, to prevent the pop-up of iron plate from falling off.When signal error, without signal or signal triggering a period of time
Afterwards, electromagnet will lose magnetism rapidly in clutch control module.Two square columns mutually divide under the action of middle springs elastic force
From gear can not be engaged, and door handle can not also carry out door opening action, have the function that locking.
The technical solution of the present embodiment acquires images to be recognized by image capture module, and infrared supplementary lighting module is acquiring
Infrared light is sent when images to be recognized, processor identifies the face in images to be recognized, and when images to be recognized includes face
Carry out In vivo detection, when being detected as living body, extract images to be recognized in face characteristic, with pre-stored face characteristic into
Row matching sends control signal of unlocking when successful match to clutch control module, and clutch control module control driving is mechanical
Lock body is unlocked, to improve safety and the discrimination of smart lock by recognition of face and In vivo detection, is avoided and is passed through photograph
Piece carries out identification unlocking, and the identification under dark situations may be implemented by infrared supplementary lighting module.
Based on the above technical solution, described image acquisition module includes infrared camera and colour imagery shot;
Wherein, the infrared camera and the colour imagery shot are connected to the processor respectively;The infrared photography
Head is sent to processor for acquiring images to be recognized;The colour imagery shot is sent to place for acquiring color image
Manage device;
The smart lock further include:
Display screen is connected to the processor, the coloured silk that the infrared camera for receiving and video-stream processor is sent acquires
Chromatic graph picture.
After infrared camera and colour imagery shot collect image, it is sent respectively to processor, by processor by cromogram
It is shown as being sent to display screen, and recognition of face and In vivo detection is carried out to the images to be recognized of infrared camera acquisition.Figure
As in acquisition module infrared camera and colour imagery shot be binocular camera, the binocular camera and infrared supplementary lighting module group
At binocular camera mould group.Infrared supplementary lighting module includes infrared light compensating lamp and optical source wavelength filtering light passing piece, infrared supplementary lighting module
The infrared light of transmitting directly or indirectly projects Face datection region, optical source wavelength filtering light passing piece be located at independent acquisition face at
Before the infrared camera camera lens of picture, match with the wavelength of independent infrared light supply, realizes the recognition of face under dark situations, solution
The case where enabling can not be identified under dark situations of having determined.Wherein, the display screen is chosen as touch display screen, can with user into
Row interaction, can also be unlocked by password.The smart lock it is easy to operate, interface hommization, touched using TFT liquid crystal display
Screen is touched, support local operation and real-time display function is provided.It is designed using twin-lens and is regarded by special video processing
Frequency switches, and the face location information that infrared camera detects, which is fed back to colour imagery shot, may insure camera lens when being destroyed not
Will appear accidentally to know causes identification to be unlocked.Infrared face recognition door lock is contactless identification door lock, so that door lock and identified
Object do not allow it is easy to pollute, it is safer, hygienic.It is designed, can be prevented because of external force explosion using infrared face recognition and purely mechanic lock body
Identification module damage is caused the case where lock body enabling occur.
It is the visual form shown when the image that the display screen of smart lock is shown.Processor can be according to light environment
Selection shows color video or infrared video on a display screen, i.e., color video, light are shown under bright light environmental condition
Infrared video is shown under the conditions of line dim environment.Video shows that speed is greater than 5fps.That is the speed of camera collection image is greater than
5fps, smart lock carry out recognition of face when recognition speed be greater than 3fps, in a recognition cycle, accuracy of identification: FAR <
0.1%, VR > 95%.Identify that angle can be in 15 degree up and down.
Based on the above technical solution, the also optional alarm including being connected to the processor;
The processor is also used to send alarm control signal when it fails to match to the alarm;
The alarm according to the alarm control signal for alarming.
Wherein, the alarm can be phonetic alarm, smart lock when it fails to match can also by display screen into
Row alarm.
Based on the above technical solution, the smart lock is also optional includes:
ZigBee module is connected to the processor, for communicating with external device.
User can select the recognition mode of smart lock in a variety of recognition modes, and recognition mode includes: recognition of face, close
Code identification and recognition of face and password identification combination are identified.
Wherein, ZigBee module includes the interface with external device communication, what monitoring was created by Zigbee class
ZigbeeReaderThread thread process data packet, this thread can allow terminal to pass through Zigbee module and Zigbee gateway
Connection uses, and carries out data pack receiving and transmitting.ZigBee module physical layer uses UART (Universal Asynchronous
Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) communication interface, no hardware flow control.The UART communication interface
Including receive data-interface (RXD), send data-interface (TXD), (GND) and 3.3 volts of power interfaces (VCC), transmission data
When baud rate can be set to 38400bps, data bit accounts for 8, and stop position accounts for 1, no parity.
Wherein, the UART communication interface includes UART receiver.The Rx foot of UART is configured to interrupt mode, failing edge touching
Hair, I/O port pull-up;Tx foot is configured to common IO foot, and I/O port is high level.When needing to carry out data transmission using UART,
It needs first to drag down Tx pin, and reconfiguring I/O port is peripheral mode, enables UART receiver, can be counted after waiting 50ms
According to communication.After the data transfer ends, UART receiver is deactivated again, and configure interrupt mode for the I/O pin of UART.
For the data of single byte in UART, a data being made of multibyte are made according to UART standard transmission
It is transmitted with little endian mode.Such as: user password is expressed as Binary Zero b0010 0,000 00011000 i.e. hexadecimal
0x2018, the data of UART transmission at this time are as follows: 0x18 0x20;Temporary password effective time 259 minutes i.e. hexadecimal
0x0103, the data of UART transmission at this time are as follows: 0x03 0x01;The region switch gate state notifying order DATA: Time=
0x01020304, ID=0x0506, Type=0x07, the data of UART transmission at this time are as follows: 0x04 0x03 0x02 0x01
0x06 0x05 0x07。
When smart lock and external device are communicated, the two is likely to initiate communication, in order to avoid communication bus
It forces and conflicts, lead to data-bag lost or entanglement, increase communication anti-collision mechanism.The principle of mechanism is the double of serial communication
Side can apply for the control of bus, and the side for initiating communication first sends request communication command, if other side is idle and returns to ACK,
So initiating one side of communication is host, and another party is slave, and host can send other lives after receiving the corresponding ACK of slave
It enables and completes communication affairs.Communication conflict if it exists then carries out in accordance with the following steps: smart lock and external device either side are initiated
When communication, request communication command is sent;Slave sends the ACK of unsolicited communication command;Both sides enter random time waiting, need
It initiates one side of communication and sends request communication command again, get the corresponding ACK of request communication command until initiating one side of communication,
Host sends other orders and completes communication.
Wherein, Fig. 2 is the structural schematic diagram of the power supply in smart lock provided in an embodiment of the present invention, as shown in Fig. 2, power supply
60 it is optional include: main power source 61, backup power source 62, power switching circuit 63,64,3.3 volts of division module, 65,5 volts of reduction voltage circuit
Booster circuit 66 and voltage increase and current constant circuit 67;
Wherein, the first input end of the output end connection power switching circuit 63 of main power source 61, the output of backup power source 62
Second input terminal of end connection power switching circuit 63, the output end of power switching circuit 63 are separately connected division module 64,3.3
Lie prostrate the input terminal of reduction voltage circuit 65,5 volts of booster circuits 66 and voltage increase and current constant circuit 67;
Power switching circuit 63 is for selecting main power source 61 or backup power source 62 to be powered;
The feeder ear of the output end connection image capture module 20 of division module 64, for being supplied to image capture module 20
Electricity;
3.3 volts of reduction voltage circuits 65 connect the feeder ear of processor 10, the power supply drop for inputting power switching circuit 63
Output is powered to processor 10 after pressure is 3.3 volts;
5 volts of booster circuits 66 connect the feeder ear of clutch control module 40, for input power switching circuit 63
Output is powered to clutch control module 40 after power boost is 5 volts;
Voltage increase and current constant circuit 67 connects the feeder ear of infrared supplementary lighting module 30, the electricity for inputting power switching circuit 63
Source carries out constant current output, powers to infrared supplementary lighting module 30.
Wherein, the lithium battery that main power source is 3.7 volts, can be used 4~6 months in the case where battery is fully charged.Partial pressure
Module 64 includes 1.8 volts of output ends and 2.8 volts of output ends, and 2.8 volts of voltages that 2.8 volts of output ends export are to touch display screen and figure
As acquisition module power supply, 1.8 volts of voltages that 1.8 volts of output ends export are supplied to key, electronic lock switch and channel switch etc. is waken up
Electricity.3.3 volts of reduction voltage circuit 65 and 5 volt booster circuits 66 contribute to pressure stabilizing.The output end of 5 volts of booster circuits 66 is also connected with standby
With the input terminal of power supply 62, for when the electricity of backup power source is low, giving backup power source charging.Clutch control module 40 includes
Motor control chip, the motor control chip can control chip for the motor special of TI.
By main power source, backup power source and power switching circuit, can be very good to avoid drawing electricity low for smart lock power supply
The case where can not identifying unlocking, and be voltage required for modules by power switching circuit conversion, guarantee each module
Normal work, and reduce power consumption.
Optionally, power switching circuit 63 is electric with 3.3 volts of reduction voltage circuits, 65,5 volts of booster circuits 66 and voltage increase and current constant respectively
Load switch is connected between road 67.To which in the standby state, each load switch can be disconnected, to reduce the function of smart lock
Consumption.
Optionally, power supply 60 further includes emergency power supply interface and voltage reduction module, the emergency power supply interface connection decompression mould
The input terminal of block, the third input terminal of the output end connection power switching circuit 63 of the voltage reduction module, answers urgent telegram for providing
Source.The emergency power supply interface is USB interface, can in the case that the main power source and backup power source in smart lock are no electric
Charger baby is inserted into emergency power supply interface, to start each module in smart lock, recognition of face and In vivo detection is carried out, avoids
The case where electricity can not open the door when low.
Embodiment two
Fig. 3 is a kind of flow chart of method that control smart lock is opened provided by Embodiment 2 of the present invention, the smart lock
It is smart lock described in any embodiment of that present invention, which is to control unlatching by recognition of face.As shown in figure 3,
This method specifically comprises the following steps:
Step 210, infrared light is emitted by infrared supplementary lighting module, and by image capture module acquisition shelter wait know
Other image, and it is sent to processor.
It carries out identifying that user can press the wake-up key of smart lock, to call out when unlocking starting face identification functions
Modules in awake smart lock work, and processor is controlled powers to infrared supplementary lighting module, so that infrared light filling mould
Infrared light occurs for block, and simultaneous processor controls the images to be recognized of image capture module acquisition shelter, and image capture module is adopted
Processor is sent to after collecting images to be recognized.It is adopted when image capture module acquires images to be recognized with default frame rate
Collection, what is got is the video flowing of shelter, thus processor can choose it is relatively clear or biggish including face range
Image carries out recognition of face and feature extraction.
Step 220, the face in the images to be recognized is detected by processor, and includes in the images to be recognized
In vivo detection is carried out to the shelter when face and extracts the face characteristic in the images to be recognized when being detected as living body,
It is matched with pre-stored face characteristic, and sends control signal of unlocking to clutch control module in successful match.
After processor receives the images to be recognized of image capture module transmission, Face datection is carried out to images to be recognized,
Whether include face, and when including face, carry out Face detection if detecting in images to be recognized.When including face, further
To shelter carry out In vivo detection, only when being detected as living body, just extraction images to be recognized in face characteristic, and with it is preparatory
The face characteristic of storage carries out characteristic matching, by setting a threshold value, determined when similarity is more than this threshold value matching at
Function determines that it fails to match if being not above the threshold value, and processor controls clutch control module progress in successful match
It unlocks.
When extracting face characteristic, dynamic local Signature Analysis Techique can be used to extract face characteristic, i.e., first into
The pretreatment of row images to be recognized removes noise excessively high in images to be recognized, by the images to be recognized peripheral adjustment of input
The method migration of detection is at two-symbol image, then extracts face texture, is then come using Local Features Analysis method
The edge shadow and skin line for handling face, to identify face.
When controlling smart lock unlatching by recognition of face, internal interface mainly includes system setting, user management, sets safely
It sets and advanced setting, system setting mainly includes basic configuration, system time and network configuration etc., user management mainly includes increasing
Add new user, editor user, delete user and search user etc., it can the face characteristic of multiple users is saved by setting,
Basis as identification.
Step 230, signal control driving mechanical lock is controlled according to the unlocking by clutch control module to unlock.
Processor in face characteristic successful match, power to clutch control module, thus clutch control mould by control
Block drives the intracorporal component of mechanical lock to unlock.If item for disposal is in face characteristic, it fails to match, will not drive clutch
Control module, and then not will do it unlocking.
It is identifying successfully or when recognition failures, can all generate an identification record, checking that smart lock identifies convenient for user
Situation.And when identifying successfully, also the face characteristic in the images to be recognized can be replaced the pre-stored face
Corresponding face characteristic in feature, to guarantee that the face characteristic saved is the nearest information material of user, so as to always just
Really identification face.
The technical solution of the present embodiment emits infrared sight by infrared supplementary lighting module, and image capture module acquires shelter
Images to be recognized, processor detect images to be recognized in face, and in images to be recognized include face when to shelter
Carry out In vivo detection, when being detected as living body extract images to be recognized in face characteristic, with pre-stored face characteristic into
Row matching sends control signal of unlocking in successful match to clutch control module, is controlled and driven by clutch control module
Mechanical lock is unlocked, to improve safety and the discrimination of smart lock by recognition of face and In vivo detection, is avoided logical
It crosses photo and 3D faceform carries out identification unlocking, and the identification under dark situations may be implemented by infrared supplementary lighting module,
For user without carrying card, recognition speed is fast, simple and convenient.
Based on the above technical solution, described image acquisition module includes infrared camera and colour imagery shot;
Images to be recognized is acquired by image capture module, comprising:
Images to be recognized is acquired by infrared camera, color image is acquired by colour imagery shot, and red by receiving
The reflection light of the infrared light of outer supplementary lighting module transmitting;
In vivo detection is carried out to the shelter by processor, including
The time of infrared light is emitted according to infrared supplementary lighting module by processor and infrared camera receives reflection light
Time, determine the wavelength of each reflection light, according to the wavelength of each reflection light carry out described point generate an image, will give birth to
At image be overlapped with the images to be recognized, and determine coincidence value, when the coincidence value is greater than default trust value, really
The fixed shelter is living body.
Infrared camera and colour imagery shot in image capture module are binocular camera.When carrying out In vivo detection, according to
Described point is carried out according to the wavelength of reflection light, so as to generate an image, the image of generation and images to be recognized are carried out
It overlaps, and obtains coincidence value, if coincidence value is greater than default trust value, it is determined that shelter is living body.Pass through this method
In vivo detection is carried out, testing result is more accurate, so as to improve the safety of smart lock.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of smart lock, which is characterized in that the smart lock include: processor, image capture module, infrared supplementary lighting module,
Clutch control module, mechanical lock and power supply;
Described image acquisition module is connected to the processor, and for acquiring the images to be recognized of shelter, and is sent to described
Processor;
The infrared supplementary lighting module is connected to the processor, for emitting infrared light when acquiring images to be recognized;
The processor is connect with the clutch control module, for identification the face in the images to be recognized, and in institute
In vivo detection is carried out to the shelter when stating in images to be recognized including face, when being detected as living body, is extracted described wait know
Face characteristic in other image, is matched with pre-stored face characteristic, and control letter of unlocking is sent in successful match
Number give clutch control module;
The clutch control module is used to control signal according to the unlocking, and control driving mechanical lock is unlocked;
The power supply respectively with described image acquisition module, infrared supplementary lighting module, processor and the clutch control module
Feeder ear connection, for supplying described image acquisition module, infrared supplementary lighting module, processor and the clutch control module
Electricity.
2. smart lock according to claim 1, which is characterized in that described image acquisition module includes infrared camera and coloured silk
Color camera;
Wherein, the infrared camera and the colour imagery shot are connected to the processor respectively;The infrared camera is used
In acquisition images to be recognized, and it is sent to processor;The colour imagery shot is sent to processing for acquiring color image
Device;
The smart lock further include:
Display screen is connected to the processor, the cromogram that the infrared camera for receiving and video-stream processor is sent acquires
Picture.
3. smart lock according to claim 2, which is characterized in that the display screen is touch display screen.
4. smart lock according to claim 1, which is characterized in that further include the alarm being connected to the processor;
The processor is also used to send alarm control signal when it fails to match to the alarm;
The alarm according to the alarm control signal for alarming.
5. smart lock according to claim 1, which is characterized in that the power supply includes: main power source, backup power source, power supply
Switching circuit, division module, 3.3 volts of reduction voltage circuits, 5 volts of booster circuits and voltage increase and current constant circuit;
Wherein, the output end of main power source connects the first input end of the power switching circuit, the output end of the backup power source
The second input terminal of the power switching circuit is connected, the output end of the power switching circuit is separately connected the partial pressure mould
Block, 3.3 volts of reduction voltage circuits, 5 volts of booster circuits and voltage increase and current constant circuit input terminal;
The power switching circuit, for selecting main power source or backup power source to be powered;
The feeder ear of the output end connection described image acquisition module of the division module, for being supplied to described image acquisition module
Electricity;
3.3 volts of reduction voltage circuits connect the feeder ear of the processor, the power supply for inputting the power switching circuit
Output is powered to the processor after decompression is 3.3 volts;
5 volts of booster circuits connect the feeder ear of the clutch control module, for inputting the power switching circuit
Power boost be 5 volts after output give the clutch control module power supply;
The feeder ear of infrared supplementary lighting module described in the voltage increase and current constant circuit connection, for input the power switching circuit
Power supply carries out constant current output, to the infrared supplementary lighting module power supply.
6. smart lock according to claim 5, which is characterized in that the power switching circuit is dropped with described 3.3 volts respectively
Load switch is connected between volt circuit, 5 volts of booster circuits and voltage increase and current constant circuit.
7. smart lock according to claim 5, which is characterized in that the power supply further includes emergency power supply interface and decompression mould
Block, the emergency power supply interface connect the input terminal of the voltage reduction module, and the output end of the voltage reduction module connects the power supply
The third input terminal of switching circuit, for providing emergency power supply.
8. smart lock according to claim 1, which is characterized in that further include:
ZigBee module is connected to the processor, for communicating with external device.
9. the method that smart lock described in a kind of control claim 1-8 is opened, which is characterized in that the described method includes:
Emit infrared light by infrared supplementary lighting module, and acquire the images to be recognized of shelter by image capture module, concurrently
Give processor;
Detect the face in the images to be recognized by processor, and in the images to be recognized include face when to described
Shelter carries out In vivo detection and extracts the face characteristic in the images to be recognized when being detected as living body, and pre-stored
Face characteristic is matched, and sends control signal of unlocking to clutch control module in successful match;
Signal control driving mechanical lock is controlled according to the unlocking by clutch control module to unlock.
10. device according to claim 9, which is characterized in that described image acquisition module includes infrared camera and coloured silk
Color camera;
Images to be recognized is acquired by image capture module, comprising:
Images to be recognized is acquired by infrared camera, color image is acquired by colour imagery shot, and by receiving infrared benefit
The reflection light of the infrared light of optical module transmitting;
In vivo detection is carried out to the shelter by processor, including
By processor according to infrared supplementary lighting module emit infrared light time and infrared camera receive reflection light when
Between, it determines the wavelength of each reflection light, described point is carried out according to the wavelength of each reflection light and generates an image, by generation
Image is overlapped with the images to be recognized, and determines coincidence value, when the coincidence value is greater than default trust value, determines institute
Stating shelter is living body.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810828773.7A CN109147116A (en) | 2018-07-25 | 2018-07-25 | The method that smart lock and control smart lock are opened |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810828773.7A CN109147116A (en) | 2018-07-25 | 2018-07-25 | The method that smart lock and control smart lock are opened |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109147116A true CN109147116A (en) | 2019-01-04 |
Family
ID=64797955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810828773.7A Pending CN109147116A (en) | 2018-07-25 | 2018-07-25 | The method that smart lock and control smart lock are opened |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109147116A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111063078A (en) * | 2019-11-20 | 2020-04-24 | 杭州遁甲科技有限公司 | Entrance guard control method and device based on living body recognition and safety door |
CN112102531A (en) * | 2020-08-28 | 2020-12-18 | 北京如易行科技有限公司 | Face recognition brake-passing riding system and method |
CN112165573A (en) * | 2020-09-14 | 2021-01-01 | 上海商汤智能科技有限公司 | Shooting processing method and device, equipment and storage medium |
CN112184937A (en) * | 2019-07-04 | 2021-01-05 | 钉钉控股(开曼)有限公司 | Attendance checking and infrared light supplement lamp driving method, device, equipment and system |
CN113012317A (en) * | 2019-12-20 | 2021-06-22 | 云丁网络技术(北京)有限公司 | Identity confirmation equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622588A (en) * | 2012-03-08 | 2012-08-01 | 无锡数字奥森科技有限公司 | Dual-certification face anti-counterfeit method and device |
CN203169302U (en) * | 2013-02-16 | 2013-09-04 | 秦皇岛市康泰医学系统有限公司 | Embedded telemedicine communication terminal |
CN204463162U (en) * | 2015-03-23 | 2015-07-08 | 重庆电子工程职业学院 | A kind of intelligent face recognition system |
CN105260731A (en) * | 2015-11-25 | 2016-01-20 | 商汤集团有限公司 | Human face living body detection system and method based on optical pulses |
CN105354557A (en) * | 2014-11-03 | 2016-02-24 | 倪蔚民 | Biopsy detection method for anti-counterfeit object through biological recognition |
CN105930780A (en) * | 2016-04-14 | 2016-09-07 | 苏州优化智能科技有限公司 | Near infrared and micro expression based living body identity verification method |
CN106296950A (en) * | 2016-09-30 | 2017-01-04 | 深圳市商汤科技有限公司 | A kind of gate control system based on recognition of face |
CN106372601A (en) * | 2016-08-31 | 2017-02-01 | 上海依图网络科技有限公司 | In vivo detection method based on infrared visible binocular image and device |
CN106407914A (en) * | 2016-08-31 | 2017-02-15 | 北京旷视科技有限公司 | Method for detecting human faces, device and remote teller machine system |
CN206249454U (en) * | 2016-09-30 | 2017-06-13 | 王力安防科技股份有限公司 | A kind of Intelligent door lock capable of recognizing face system and safety door |
CN107918773A (en) * | 2017-12-13 | 2018-04-17 | 汉王科技股份有限公司 | A kind of human face in-vivo detection method, device and electronic equipment |
CN108229362A (en) * | 2017-12-27 | 2018-06-29 | 杭州悉尔科技有限公司 | A kind of binocular recognition of face biopsy method based on access control system |
CN208954159U (en) * | 2018-07-25 | 2019-06-07 | 深圳市飞瑞斯科技有限公司 | Smart lock |
-
2018
- 2018-07-25 CN CN201810828773.7A patent/CN109147116A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622588A (en) * | 2012-03-08 | 2012-08-01 | 无锡数字奥森科技有限公司 | Dual-certification face anti-counterfeit method and device |
CN203169302U (en) * | 2013-02-16 | 2013-09-04 | 秦皇岛市康泰医学系统有限公司 | Embedded telemedicine communication terminal |
CN105354557A (en) * | 2014-11-03 | 2016-02-24 | 倪蔚民 | Biopsy detection method for anti-counterfeit object through biological recognition |
CN204463162U (en) * | 2015-03-23 | 2015-07-08 | 重庆电子工程职业学院 | A kind of intelligent face recognition system |
CN105260731A (en) * | 2015-11-25 | 2016-01-20 | 商汤集团有限公司 | Human face living body detection system and method based on optical pulses |
CN105930780A (en) * | 2016-04-14 | 2016-09-07 | 苏州优化智能科技有限公司 | Near infrared and micro expression based living body identity verification method |
CN106407914A (en) * | 2016-08-31 | 2017-02-15 | 北京旷视科技有限公司 | Method for detecting human faces, device and remote teller machine system |
CN106372601A (en) * | 2016-08-31 | 2017-02-01 | 上海依图网络科技有限公司 | In vivo detection method based on infrared visible binocular image and device |
CN106296950A (en) * | 2016-09-30 | 2017-01-04 | 深圳市商汤科技有限公司 | A kind of gate control system based on recognition of face |
CN206249454U (en) * | 2016-09-30 | 2017-06-13 | 王力安防科技股份有限公司 | A kind of Intelligent door lock capable of recognizing face system and safety door |
CN107918773A (en) * | 2017-12-13 | 2018-04-17 | 汉王科技股份有限公司 | A kind of human face in-vivo detection method, device and electronic equipment |
CN108229362A (en) * | 2017-12-27 | 2018-06-29 | 杭州悉尔科技有限公司 | A kind of binocular recognition of face biopsy method based on access control system |
CN208954159U (en) * | 2018-07-25 | 2019-06-07 | 深圳市飞瑞斯科技有限公司 | Smart lock |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112184937A (en) * | 2019-07-04 | 2021-01-05 | 钉钉控股(开曼)有限公司 | Attendance checking and infrared light supplement lamp driving method, device, equipment and system |
CN111063078A (en) * | 2019-11-20 | 2020-04-24 | 杭州遁甲科技有限公司 | Entrance guard control method and device based on living body recognition and safety door |
CN113012317A (en) * | 2019-12-20 | 2021-06-22 | 云丁网络技术(北京)有限公司 | Identity confirmation equipment |
CN112102531A (en) * | 2020-08-28 | 2020-12-18 | 北京如易行科技有限公司 | Face recognition brake-passing riding system and method |
CN112165573A (en) * | 2020-09-14 | 2021-01-01 | 上海商汤智能科技有限公司 | Shooting processing method and device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN208954159U (en) | Smart lock | |
CN109147116A (en) | The method that smart lock and control smart lock are opened | |
CN208207948U (en) | vehicle with face unlocking function | |
CN202009428U (en) | Mobile phone capable of being unlocked through face recognition | |
CN107358710A (en) | A kind of intelligent door system | |
CN202831872U (en) | Super low-power fingerprint lock with electronic eye theft prevention and cell phone communication function | |
CN205427946U (en) | Hotel moves in management system | |
CN103291135A (en) | Ultra-low power consumption fingerprint lock having electronic eye anti-theft and mobile phone communication functions | |
CN106980849A (en) | Hardware iris authentication system based on FPGA | |
CN106887059A (en) | A kind of intelligent electronic lock system based on face recognition | |
CN108022355A (en) | A kind of control method of recognition of face lockset, system and a kind of recognition of face lockset | |
CN108091015A (en) | A kind of method for unlocking based on recognition of face and Bluetooth function, system | |
CN101148956A (en) | Intelligent door lock with human face identification function | |
CN207233066U (en) | A kind of type hotel occupancy management system | |
CN108846382A (en) | A kind of intelligence community personnel information acquisition system based on face recognition technology | |
CN105372982A (en) | Intelligent iris watch | |
CN103019381A (en) | Method for controlling automatic backlight of display screen | |
CN202117429U (en) | Intelligent human-face lock with voice prompt function | |
CN111525650A (en) | Intelligent lock battery management method | |
CN207440783U (en) | Hardware iris authentication system based on FPGA | |
CN212809322U (en) | Hand vein face multi-mode identification entrance guard attendance all-in-one | |
CN209168212U (en) | Recognition of face smart lock | |
CN204731864U (en) | A kind of integrated entrance guard device | |
CN210955125U (en) | Face recognition intelligent cloud elevator control system | |
CN209625240U (en) | A kind of hand vein recognition identification authentication system and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |