CN108596122A - A kind of auth method, device, authentication machine and computer-readable medium - Google Patents

A kind of auth method, device, authentication machine and computer-readable medium Download PDF

Info

Publication number
CN108596122A
CN108596122A CN201810399171.4A CN201810399171A CN108596122A CN 108596122 A CN108596122 A CN 108596122A CN 201810399171 A CN201810399171 A CN 201810399171A CN 108596122 A CN108596122 A CN 108596122A
Authority
CN
China
Prior art keywords
information
certificate
detected
image
target
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
Application number
CN201810399171.4A
Other languages
Chinese (zh)
Inventor
郭志鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Megvii Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Megvii Technology Co Ltd filed Critical Beijing Megvii Technology Co Ltd
Priority to CN201810399171.4A priority Critical patent/CN108596122A/en
Publication of CN108596122A publication Critical patent/CN108596122A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K9/00Methods or arrangements for reading or recognising printed or written characters or for recognising patterns, e.g. fingerprints
    • G06K9/00442Document analysis and understanding; Document recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K9/00Methods or arrangements for reading or recognising printed or written characters or for recognising patterns, e.g. fingerprints
    • G06K9/00885Biometric patterns not provided for under G06K9/00006, G06K9/00154, G06K9/00335, G06K9/00362, G06K9/00597; Biometric specific functions not specific to the kind of biometric
    • G06K9/00899Spoof detection
    • G06K9/00906Detection of body part being alive

Abstract

The present invention provides a kind of auth method, device, authentication machine and computer-readable mediums, are related to the technical field of image recognition, and this method includes:After the certificate information for reading target certificate, the infrared eye in authentication machine is activated, to carry out In vivo detection to the object to be detected detected by infrared eye;If detecting that object to be detected is live body, then compare certificate information and the whether affiliated same target of target image, to obtain authentication result, wherein, target image is the collected image for including object to be detected of image acquisition device of authentication machine, and the present invention alleviates existing testimony of a witness verifying system high technical problem of testing cost when carrying out In vivo detection.

Description

A kind of auth method, device, authentication machine and computer-readable medium
Technical field
The present invention relates to the technical fields of image recognition, more particularly, to a kind of auth method, device, authentication Machine and computer-readable medium.
Background technology
Identity verifying system is since appearance, and all there are two cameras, a camera to be responsible for collection in worksite face for tool, Another carries out OCR (Optical Character Recognition, optical character identification) calculations for scanning certificate image Method, but according to common Face datection algorithms library for, it is difficult to tell the face on true man and mobile phone screen, be easy electric Face on sub-display is got by under false pretences.Therefore, many users propose there is this link of In vivo detection, it has to be possible to distinguish and live Body and non-living body.Moreover, head portrait identification is also the very fierce market of competition, must be requested that the product speed of oneself is fast, essence Degree is accurate, multiple functional no weakness.
In order to solve this problem, existing solution is the detection of live body frame, that is to say, that in testimony of a witness verifying system It is middle to increase the function that live body frame detects to carry out In vivo detection.But live body frame detection for equipment configuration requirement very Height will largely improve the production cost of equipment.
Invention content
In view of this, the purpose of the present invention is to provide a kind of auth method, device, authentication machine and computers Readable medium, to alleviate existing identity verifying system high technical problem of testing cost when carrying out In vivo detection.
In a first aspect, an embodiment of the present invention provides a kind of auth method, application identity verification machine, including:It is reading After the certificate information for getting target certificate, infrared eye in a dormant state in the authentication machine is activated, with In vivo detection is carried out to object to be detected by the infrared eye;If the object to be detected is live body, by institute It states certificate information and the target image is compared, to obtain comparing result, the target image is the authentication machine The collected image for including the object to be detected of image acquisition device.
Further, the certificate information for reading the target certificate includes:Pass through the card reader in the authentication machine Read the certificate information;If the card reader does not read the certificate information within a preset period of time, open described in Text region photographic device in authentication machine;The target certificate is swept by the Text region photographic device It retouches, to read the certificate information of the target certificate, wherein described during the Text region photographic device works infrared to take the photograph In a dormant state as device.
Further, the method further includes:The certificate information is being read by the Text region photographic device Later, and before activating the infrared eye in the authentication machine, so that the Text region photographic device is in and stop Dormancy state.
Further, if the card reader in the authentication machine reads the certificate letter within a preset period of time Breath, then activate the infrared eye in the authentication machine, with by the infrared eye to institute in target image Including object to be detected carry out In vivo detection.
Further, reading the certificate information by the card reader in the authentication machine includes:In the Card Reader After photosensitive blocking sensor in device detects blocking information, the card reader passed through in the authentication machine reads the card Part information.
Further, the method further includes:Determine that the object to be detected is believed in the first position of the target image Breath, and determine second position information of the object to be detected in infrared image, wherein the infrared image is described red Outer photographic device collected infrared image when carrying out In vivo detection to the object to be detected;Believed based on the first position Breath and the second position information determine whether to compare the certificate information and the target image.
Further, determined whether the certificate information based on the first position information and the second position information Carrying out comparison with the target image includes:If it is determined that between the first position information and the second position information Alternate position spike is less than or equal to preset difference value, then compares the certificate information and the target image.
Second aspect, an embodiment of the present invention provides a kind of authentication means, application identity verification machine, including:Activation Unit, for after the certificate information for reading target certificate, activating in the authentication machine in a dormant state red Outer photographic device, to carry out In vivo detection to object to be detected by the infrared eye;Comparison unit, for described In the case that object to be detected is live body, the certificate information and target image are compared, it is described to obtain comparing result Target image is the collected image for including the object to be detected of image acquisition device of the authentication machine.
The third aspect, an embodiment of the present invention provides a kind of authentication machines, including:Photographic device, memory, processor And it is stored in the computer program that can be run on the memory and on the processor, the processor executes the calculating Method described in any one of the above embodiments is realized when machine program;The photographic device includes:Infrared eye, image acquisition device and text Word identifies photographic device, when any one in the infrared eye and the Text region photographic device is activated, in addition One in a dormant state;The Text region photographic device is for the card reader in the authentication machine to target certificate Certificate information read failure when, the target certificate is scanned;The infrared eye is for waiting for what is detected It detects object and carries out In vivo detection;Described image collector is for acquiring the image for including the object to be detected.
Fourth aspect, an embodiment of the present invention provides a kind of meters for the non-volatile program code that can perform with processor Calculation machine readable medium, said program code make the processor execute any of the above-described the method.
In embodiments of the present invention, it after the certificate information for reading target certificate, activates and is in authentication machine The infrared eye of dormant state, to carry out In vivo detection to object to be detected by infrared eye;Wherein, if waited for Detection object is live body, then compares certificate information and target image, to obtain comparing result, target image is tested for identity The collected image for including object to be detected of image acquisition device of card machine.By foregoing description it is found that in the present embodiment, leading to Infrared eye is crossed to carry out In vivo detection, the In vivo detection cost of testimony of a witness verifying system can be reduced, meanwhile, in this implementation In example, by way of opening infrared eye when being arranged in In vivo detection, additionally it is possible to which the utilization rate for reducing CPU subtracts simultaneously The use of the memory of few authentication machine, and then it is high to alleviate existing identity verifying system testing cost when carrying out In vivo detection The technical issues of.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and is obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, other drawings may also be obtained based on these drawings.
Fig. 1 is the schematic diagram of a kind of electronic equipment according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of auth method according to the ... of the embodiment of the present invention;
Fig. 3 is the flow chart of another optionally auth method according to the ... of the embodiment of the present invention;
Fig. 4 is the flow chart of another optionally auth method according to the ... of the embodiment of the present invention;
Fig. 5 is the flow chart of another optionally auth method according to the ... of the embodiment of the present invention;
Fig. 6 is the flow chart of another optionally auth method according to the ... of the embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of authentication means according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
First, the exemplary electronic device of the auth method for realizing the embodiment of the present invention is described referring to Fig.1 100。
As shown in Figure 1, electronic equipment 100 include one or more processing equipments 102, one or more storage devices 104, Input unit 106, output device 108 and photographic device 110, these components pass through bus system 112 and/or other forms Bindiny mechanism's (not shown) interconnection.It should be noted that the component and structure of electronic equipment 100 shown in FIG. 1 are only exemplary, and Unrestricted, as needed, the electronic equipment can also have other assemblies and structure.
The processing equipment 102 can be central processing unit (CPU) or be held with data-handling capacity and/or instruction The processing unit of the other forms of row ability, and other components in the electronic equipment 100 can be controlled to execute expectation Function.
The storage device 104 may include one or more computer program products, and the computer program product can To include various forms of computer readable storage mediums, such as volatile memory and/or nonvolatile memory.It is described easy The property lost memory is such as may include random access memory (RAM) and/or cache memory (cache).It is described non- Volatile memory is such as may include read-only memory (ROM), hard disk, flash memory.In the computer readable storage medium On can store one or more computer program instructions, processing equipment 102 can run described program instruction, to realize hereafter The client functionality (realized by processor) in the embodiment of the present invention and/or other desired functions.Described Can also store various application programs and various data in computer readable storage medium, for example, the application program use and/ Or the various data etc. generated.
The input unit 106 can be the device that user is used for inputting instruction, and may include keyboard, mouse, wheat One or more of gram wind and touch screen etc..
The output device 108 can export various information (for example, image or sound) to external (for example, user), and And may include one or more of display, loud speaker etc..
The photographic device 110 can shoot the desired image of user (such as photo, video etc.), and will be captured Image is stored in the storage device 104 so that other components use.
It illustratively, can be by reality for realizing the exemplary electronic device of auth method according to the ... of the embodiment of the present invention It is now on such as authentication machine (for example, the testimony of a witness veritifies machine).
According to embodiments of the present invention, a kind of embodiment of auth method is provided, it should be noted that in attached drawing The step of flow illustrates can execute in the computer system of such as a group of computer-executable instructions, although also, Logical order is shown in flow chart, but in some cases, it can be to execute shown different from sequence herein or retouch The step of stating.
Fig. 2 is a kind of flow chart of auth method according to the ... of the embodiment of the present invention, this method application identity verification machine, As shown in Fig. 2, this method comprises the following steps:
Step S202 is activated after the certificate information for reading target certificate and is in suspend mode in the authentication machine The infrared eye of state, to carry out In vivo detection to object to be detected by the infrared eye;
In the present embodiment, target certificate can be identity card, and passport etc. can uniquely indicate the card of subscriber identity information Part.The present embodiment comparison is not specifically limited, and subscriber identity information can be indicated by being subject to.Include in following in certificate information Hold:Personage's head portrait of target certificate owning user, the ID card No. of target certificate owning user, target certificate owning user Finger print information etc. can indicate the information of its user identity.
In the present embodiment, the certificate information of target certificate can be read by card reader, word can also be utilized to know Other photographic device (for example, optical character identification OCR cameras) reads certificate information by way of scanning, specifically will be under It states in embodiment and is specifically introduced.
OCR (Optical Character Recognition, optical character identification) refers to that electronic equipment (checks on paper The character of printing determines its shape by the pattern for detecting dark, bright;Then, shape is translated into calculating with character identifying method The process of machine word;That is, being directed to printed character, the text conversion in paper document is become by black-white point using optical mode Battle array image file, and by identification software by the text conversion in image at text formatting, it is further for word processor The technology of editting and processing.
In the present embodiment, after successfully reading certificate information, so that it may infrared in authentication machine to activate Photographic device, to carry out In vivo detection to the object to be detected detected by infrared eye.Specifically, in the present embodiment In, infrared eye can carry out In vivo detection by live body algorithm to the object to be detected detected.
In the present embodiment, authentication machine is properly termed as the testimony of a witness and veritifies machine again.The testimony of a witness is veritified machine and is used for user's Identity document and the head image information of the user compare, to realize the verification of identity.In the case, pass through infrared photography Device carries out In vivo detection to object to be detected and can be understood as:Infrared eye is believed by acquiring the head portrait of object to be identified Breath, and In vivo detection is carried out to object to be detected to realize in such a way that live body algorithm calculates the head image information.
It should be noted that before activating infrared eye, infrared eye is constantly in dormant state.It is infrared Photographic device can consume the memory of authentication machine, and occupy authentication when carrying out In vivo detection by live body algorithm The CPU of machine.
By above-mentioned set-up mode, the utilization rate of CPU can be reduced, the utilization rate of CPU is made to fall below 35% from 60%, Half is also reduced in the use of memory, moreover it is possible to avoid dual camera from working at the same time dead screen caused by the mainboard overheat brought, extremely Machine, a series of problems, such as restarting.Wherein, dual camera refers to infrared eye and image acquisition device (for example, RGB is imaged Head).
Step S204 compares the certificate information and target image if the object to be detected is live body, To obtain comparing result, the target image is that the image acquisition device of the authentication machine is collected comprising described to be detected The image of object.
By foregoing description it is found that target image is collected comprising to be detected right for the image acquisition device of authentication machine The image of elephant.Optionally, target image is the collected head portrait for including object to be detected of image acquisition device of authentication machine The image of information.
In embodiments of the present invention, it after the certificate information for reading target certificate, activates and is in authentication machine The infrared eye of dormant state, to carry out In vivo detection to object to be detected by infrared eye;Wherein, if waited for Detection object is live body, then compares certificate information and target image, to obtain comparing result, target image is tested for identity The collected image for including object to be detected of image acquisition device of card machine.By foregoing description it is found that in the present embodiment, leading to Infrared eye is crossed to carry out In vivo detection, the In vivo detection cost of testimony of a witness verifying system can be reduced, meanwhile, in this implementation In example, by way of opening infrared eye when being arranged in In vivo detection, additionally it is possible to which the utilization rate for reducing CPU subtracts simultaneously The use of the memory of few authentication machine, and then it is high to alleviate existing identity verifying system testing cost when carrying out In vivo detection The technical issues of.
Fig. 3 is the flow chart of another auth method according to the ... of the embodiment of the present invention.In another embodiment, such as Shown in Fig. 3, this method comprises the following steps:
Step S301 reads the certificate information by the card reader in the authentication machine;
Step S302, judges whether card reader successfully reads certificate information within a preset period of time;If it is, executing Step S306;Otherwise, step S303 is executed;
Step S303 opens the Text region photographic device in the authentication machine;
Step S304 is scanned the target certificate by the Text region photographic device, to read the mesh The certificate information of standard card part, wherein the infrared eye is in suspend mode during the Text region photographic device works State;
Step S305 makes the Text region photographic device in a dormant state after reading the certificate information;
Step S306 activates infrared eye in a dormant state in the authentication machine, with by described red Outer photographic device carries out In vivo detection to object to be detected;Step S305 is identical as step S204, and details are not described herein again;
Step S307 compares the certificate information and target image if the object to be detected is live body, To obtain comparing result, the target image is that the image acquisition device of the authentication machine is collected comprising described to be detected The image of object;Step S306 is identical as step S206, and details are not described herein again.
In the present embodiment, first, the identity document (that is, above-mentioned target certificate) of itself can be placed on identity by user In the card reader of verification machine, in turn, believed to read the certificate of the identity document by the card reader being arranged on authentication machine Breath.In the present embodiment, the time restriction that card reader reads certificate information can be set, that is, card reader is set in preset time period The certificate information of interior reading identity card part, for example, setting card reader read body at 5 seconds in (5 seconds are above-mentioned preset time period) The certificate information of part certificate.
If the card reader does not read the certificate information of identity document in preset time period (for example, 5 seconds), open Text region photographic device in authentication machine, that is, OCR (Optical Character Recognition, optics word Symbol identification) camera.Wherein, before opening Text region photographic device, Text region photographic device is constantly in suspend mode shape State.After opening Text region photographic device, identity document is scanned by Text region photographic device, to read body The certificate information of part certificate.
If the card reader reads certificate information within a preset period of time, step S305 is directly executed, that is, activates institute State infrared eye in a dormant state in authentication machine, with by the infrared eye to object to be detected into Row In vivo detection.
In the present embodiment, the setting of preset time period can be realized by timer.For example, starting to read in card reader When card operation, that is, the timer is opened, the timing of the timer is preset time period, at the end of the timer timing, If card reader does not read certificate information also, Text region photographic device is opened.
It should be noted that in the present embodiment, when Text region photographic device is opened, infrared eye, which is in, stops Dormancy state.
Explanation is needed further exist for, card reader is during the certificate information of reading identity card part, if card reader Determine the identity document that the identity document cannot identify for the card reader, and at this time if card reader reading identity card part Time does not arrive preset time period (for example, 5 seconds) also, then Text region photographic device is directly opened, to be imaged by Text region Device is scanned the identity document of the card reader institute None- identified, and the card of the identity document is identified by way of scanning Part information.
After reading certificate information, authentication machine can activate infrared eye in a dormant state, In turn, the object to be detected for carrying out authentication to current time by infrared eye carries out In vivo detection.If detection It is live body to object to be detected, then compares certificate information and target image, to obtain comparing result, wherein target figure As the image of the collected head image information comprising object to be detected of image acquisition device for authentication machine.
By foregoing description it is found that in the present embodiment, being carried out to infrared eye and Text region photographic device Alternate intermittent is arranged.Specially:When infrared eye works, infrared eye is opened, Text region photographic device In a dormant state;When Text region photographic device works, Text region photographic device is opened, and infrared eye, which is in, stops Dormancy state.
Infrared eye can consume the memory of authentication machine when carrying out In vivo detection by live body algorithm, and Occupy the CPU of authentication machine.Therefore, pass through above-mentioned set-up mode, additionally it is possible to reduce the utilization rate of CPU, while reduce the testimony of a witness The use of the memory of veritification machine, and then further alleviate since the unlatching of infrared eye causes CPU usage to increase And the technical issues of authentication machine memory consumption increase.By the way that infrared eye and Text region photographic device alternating is arranged Intermittent work can make the utilization rate of CPU fall below 35% from 60%, half is also reduced in the use of memory, moreover it is possible to It avoids dual camera from working at the same time dead screen caused by the mainboard overheat brought, crashes, a series of problems, such as restarting.
Explanation is needed further exist for, alternate intermittent has been carried out to infrared eye and Text region photographic device and has been set Another reason for setting be:Infrared eye and Text region photographic device (for example, OCR cameras) cannot operate together.
Since OCR cameras and infrared eye belong to the same USB Hub (Universal from physical circuit Serial Bus Hub, universal serial bus concentrator).Therefore, just more sayings in Android system:OCR cameras It can not possibly be opened simultaneously with infrared eye.
Since infrared eye and OCR cameras do not have the necessity for needing to open simultaneously in operation flow, it can It is opened simultaneously with the means by switching to solve the problems, such as that OCR cameras and infrared eye are impossible.Specifically, if Card reader reads failure when reading certificate information, then need to open Text region photographic device to carry out the scanning of certificate, this When, first infrared eye is discharged, opens OCR cameras.After waiting for papers-scanning, releases immediately OCR and take the photograph As head, open infrared eye to handle In vivo detection, in this way according to flow coordinate infrared eye and OCR cameras it Between operational relationship, so that it may to be fully solved the problem of the two cameras cannot operate together.
In conclusion in the present embodiment, by the way that the intermittency check of infrared eye and OCR cameras is arranged, no Consumption that infrared eye brings when carrying out In vivo detection to authentication machine can only be avoided, and (CPU and memory disappear Consumption), additionally it is possible to avoid the problem that OCR cameras can not possibly be opened simultaneously with infrared eye in Android system.
In an optional embodiment of the present embodiment, step S302 passes through the card reader in the authentication machine The certificate information is read to include the following steps:
After photosensitive blocking sensor in the card reader detects blocking information, by the authentication machine Card reader read the certificate information.
In the present embodiment, photosensitive blocking sensor is previously provided on authentication machine, in photosensitive blocking sensor It detects after blocking information, so that it may to read certificate information by the card reader in authentication machine.Specifically, in photosensitive resistance After link sensor detects blocking information, then it can trigger above-mentioned described timer and start timing, and trigger card reader pair The certificate information of identity document is read out.
Above-mentioned Fig. 3 the embodiment described is further introduced below in conjunction with Fig. 4.Fig. 4 is according to of the invention real Apply the flow chart of another auth method of example.As shown in figure 4, including in the flow chart:Photosensitive blocking sensor is read Card device, timer, infrared eye, OCR cameras.Figure 4, it is seen that photosensitive blocking sensor and card reader are two A long-term running module, photosensitive block is used as a trigger mechanism, once photosensitive blocking sensor detects blocking information, Indicate that card reader starts to work and limited the time.
In the present embodiment, first, photosensitive blocking sensor detects blocking information in the way of poll, wherein poll Mode to refer to photosensitive blocking sensor detect in poll time point blocks information.Poll time point can come according to actual needs It is set, is not specifically limited in the present embodiment.
If photosensitive blocking sensor detects blocking information, triggers timer and start timing, and trigger card reader pair The certificate information of identity document is read out, wherein the timing of timer is preferably 5 seconds.Judge within 5 second time, reads Whether card device successfully reads the certificate information of target certificate.If it is judged that within 5 seconds time, card reader has succeeded Read the certificate information of target certificate, as shown in figure 4, then cancelling trigger, wherein trigger be taken the photograph for triggering OCR The trigger opened as head.
If it is judged that within 5 seconds time, the failed certificate information for reading target certificate of card reader, such as Fig. 4 It is shown, then the Text region photographic device in authentication machine can be temporarily opened by the triggering of trigger (for example, OCR takes the photograph As head).Figure 4, it is seen that when OCR cameras are in open state, infrared eye is in a dormant state. After OCR cameras are completed to the scanning of target certificate, control OCR cameras in a dormant state, and are needing to carry out live body When detection, infrared eye in a dormant state is opened, to carry out In vivo detection by infrared eye.
It should be noted that in the present embodiment, within 5 second time, card reader can be arranged and repeatedly read target certificate Certificate information.For example, after starting timing at 5 seconds, at T=1 seconds, if card reader reads certificate information not successfully, The certificate information that card reader read again target certificate at T=2 seconds can be then set, when T=5 seconds, if card reader Certificate information is also read not successfully, then terminates the read operation of card reader.
By foregoing description it is found that in the present embodiment, passing through the intermittence of setting infrared eye and OCR cameras Control, consumption (CPU and the memory that infrared eye can not only be avoided to be brought to authentication machine when carrying out In vivo detection Consumption), additionally it is possible to avoid the problem that OCR cameras and infrared eye can not possibly open simultaneously in Android system.
Fig. 5 is the flow chart of another auth method according to the ... of the embodiment of the present invention.In another embodiment, such as Shown in Fig. 5, this method comprises the following steps:
Step S501 is activated after the certificate information for reading target certificate and is in suspend mode in the authentication machine The infrared eye of state, to carry out In vivo detection to object to be detected by the infrared eye;Step S501 with Step S202 is identical, and details are not described herein again;
Step S502, if detecting that the object to be detected is live body, it is determined that the object to be detected is in the mesh The first position information of logo image, and determine second position information of the object to be detected in infrared image, wherein institute It is the infrared eye collected infrared image when carrying out In vivo detection to the object to be detected to state infrared image;
Step S503 is determined whether based on the first position information and the second position information by the certificate information It is compared with the target image;If it is determined that being to then follow the steps S505;
Step S504, if it is determined that the alternate position spike gone out between the first position information and the second position information is less than Or be equal to preset difference value, then the certificate information and target image are compared, to obtain comparing result, the target figure The collected image for including the object to be detected of image acquisition device as being the authentication machine, step S504 and step S204 is identical, and details are not described herein again.
In the present embodiment, first, the certificate information of target certificate is read.Wherein it is possible to which S301 is extremely through the above steps Method described in step S304 reads the certificate information of target certificate, is no longer described in detail in the present embodiment.
In the present embodiment, after reading certificate information, so that it may to activate the infrared photography in authentication machine to fill It sets, to carry out In vivo detection to the object to be detected detected by infrared eye.In the present embodiment, can be arranged red Outer photographic device carries out 3 seconds In vivo detections, in turn so that infrared eye in 3 seconds by live body algorithm to be detected Object carries out In vivo detection.
If infrared eye detects that object to be detected is live body, target image is obtained, and obtain infrared take the photograph Picture device collected infrared image when carrying out In vivo detection to object to be detected;Then, it is determined that be detected in target image The first position information of object, and determine the first position of object to be detected in infrared image.Then, believed according to first position Breath and second position information determine whether certificate information and target image being compared.If it is determined that first position information and Alternate position spike between the information of the second position is less than or equal to preset difference value, then compares certificate information and target image, Wherein, preset difference value is according to the preset threshold value of actual needs, for the concrete numerical value of preset difference value, the present embodiment It is not specifically limited.
If it is determined that the alternate position spike between first position information and second position information is more than preset difference value, then RGB takes the photograph As head resurveys the target image for including object to be detected, and by the location information of object to be detected in the target image and Two location informations are compared again, in turn, obtain the location information of object to be detected and second confidence in the target image Alternate position spike between breath.
In the present embodiment, it is by the people corresponding to certificate information when being compared certificate information and target image Object head portrait and the head image information of the object to be detected in target image are compared.When comparing result be personage's head portrait with it is to be checked The similarity surveyed between the head image information of object is more than default similarity, then confirms corresponding to object to be detected and certificate information The affiliated same target of personage's head portrait, to obtain the comparing result that comparison passes through.
It should be noted that in the present embodiment, by personage's head portrait corresponding to certificate information in target image When the head image information of object to be detected is compared, above-mentioned described location information can be the head portrait of the head portrait in the picture The location information of frame.Head portrait frame can be square, and can also be rectangle, can also be circle, can also be ellipse, right This, the present embodiment is not specifically limited.Correspondingly, the location information of head portrait frame can also there are many representation, the present embodiment Also it is not specifically limited.For example, when the head portrait frame is rectangle or square, which can be that top left co-ordinate is believed Breath and bottom right angular position information;The location information can also be the length of side information and centre bit confidence of the rectangle (or square) Breath;The rectangle can also can be uniquely determined for the diagonal line information of the rectangle (or square) and center location information etc. The information of (or square) position and size.When the head portrait frame is round, it can be center location information to go back coordinate information With radius information (or diameter information, and all long messages).
Above-mentioned Fig. 5 the embodiment described is further introduced below in conjunction with Fig. 6.Fig. 6 is according to of the invention real Apply the flow chart of another auth method of example.In the present embodiment, image acquisition device is by taking RGB cameras as an example, word Photographic device is identified to be introduced for OCR cameras.
As shown in fig. 6, when the main interface of authentication machine is opened, infrared eye and RGB cameras are all located In opening state.But the state that RGB cameras are responsible for carrying out always Face datection is taken the photograph when needing to be compared by RGB It is arrested as head carries out portrait.Infrared eye is only in running order when carrying out In vivo detection, remaining time is in and beats Open dormant state.
First, the certificate information of target certificate is read by card reader or OCR cameras.If certificate information read at Work(then needs to activate infrared eye, so that infrared eye carries out live body inspection by live body algorithm to object to be detected It surveys.When infrared eye is activated, infrared eye and RGB cameras constitute binocular (that is, infrared eye and RGB cameras are in opening state).
At this point, infrared eye carries out 3 seconds In vivo detections, if detect it is live body, and infrared eye In the infrared image of middle acquisition the position of the head image information of object to be detected and RGB camera detections to target image in head portrait The alternate position spike of the position of information is less than preset difference value, then believes the figure information in certificate information with the head portrait in object to be detected Breath is compared.
If it is not live body to detect, the object non-living body to be detected that user is currently detected is prompted, user is asked to retry. Infrared eye keeps dormant state later, to save the consumption of CPU and memory.
By foregoing description it is found that in the present embodiment, not only solves infrared eye and OCR cameras cannot be simultaneously The problem of unlatching, is also made that rational coordination for the suspend mode of infrared eye and work.So, it can not only reduce The consumption of CPU and memory avoid multi-cam while handling crash of the data initiation bandwidth problem to bring, dead to shield, camera shooting A series of problems, such as head paralysis, system reboot, moreover it is possible to ensure that the functionality of living body authentication.
In the present embodiment, aiming in coordinating the running between infrared eye and OCR cameras, infrared The consumption that the live body algorithm of photographic device is brought minimizes, and can successfully distinguish live body and non-living body.
The embodiment of the present invention additionally provides a kind of authentication means, which is mainly used for executing the present invention The auth method that embodiment the above is provided below does specifically authentication means provided in an embodiment of the present invention It introduces.
Fig. 7 is a kind of schematic diagram of authentication means according to the ... of the embodiment of the present invention, as shown in fig. 7, the authentication Device includes mainly activation unit 10 and comparison unit 20, wherein:
Unit 10 is activated, for after the certificate information for reading target certificate, activating place in the authentication machine In the infrared eye of dormant state, to carry out In vivo detection to object to be detected by the infrared eye;
Comparison unit 20 is used in the case where the object to be detected is live body, by the certificate information and target figure As being compared, to obtain comparing result, the target image is the collected packet of image acquisition device of the authentication machine Image containing the object to be detected.
In embodiments of the present invention, it after the certificate information for reading target certificate, activates and is in authentication machine The infrared eye of dormant state, to carry out In vivo detection to object to be detected by infrared eye;Wherein, if waited for Detection object is live body, then compares certificate information and target image, to obtain comparing result, target image is tested for identity The collected image for including object to be detected of image acquisition device of card machine.By foregoing description it is found that in the present embodiment, leading to Infrared eye is crossed to carry out In vivo detection, the In vivo detection cost of testimony of a witness verifying system can be reduced, meanwhile, in this implementation In example, by way of opening infrared eye when being arranged in In vivo detection, additionally it is possible to which the utilization rate for reducing CPU subtracts simultaneously The use of the memory of few authentication machine, and then it is high to alleviate existing identity verifying system testing cost when carrying out In vivo detection The technical issues of.
Optionally, which is additionally operable to:The certificate information is read by the card reader in the authentication machine;If The card reader does not read the certificate information within a preset period of time, then opens the Text region in the authentication machine Photographic device;The target certificate is scanned by the Text region photographic device, to read the target certificate Certificate information, wherein the Text region photographic device work during the infrared eye in a dormant state.
Optionally, which is additionally operable to:After reading the certificate information by the Text region photographic device, And before activating the infrared eye in the authentication machine, so that the Text region photographic device is in suspend mode shape State.
Optionally, which is additionally operable to:If the card reader in the authentication machine is read within a preset period of time The certificate information then activates the infrared eye in the authentication machine, with by the infrared eye to mesh Object progress In vivo detection to be detected included in logo image.
Optionally, reading unit 10 is additionally operable to:Photosensitive blocking sensor in the card reader detects blocking information Later, the certificate information is read by the card reader in the authentication machine.
Optionally, which further includes:First determination unit, for determining the object to be detected in the target image First position information, and determine the second position information of the object to be detected in infrared image, wherein described infrared Image is the infrared eye collected infrared image when carrying out In vivo detection to the object to be detected;Second really Order member, for being based on the first position information and the second position information determines whether the certificate information and described Target image is compared.
Optionally, the second determination unit is used for:If it is determined that the first position information and the second position information Between alternate position spike be less than or equal to preset difference value, then the certificate information and the target image are compared.
The technique effect and preceding method embodiment phase of the device that the embodiment of the present invention is provided, realization principle and generation Together, to briefly describe, device embodiment part does not refer to place, can refer to corresponding contents in preceding method embodiment.
In another embodiment, a kind of authentication machine is additionally provided, including:Photographic device, memory, processor And it is stored in the computer program that can be run on the memory and on the processor, the processor executes the calculating The method described in above method embodiment is realized when machine program;The photographic device includes:Infrared eye, Image Acquisition Any one in device and Text region photographic device, the infrared eye and the Text region photographic device is activated When, another is in a dormant state;The Text region photographic device is for the card reader pair in the authentication machine When the certificate information of target certificate reads failure, the target certificate is scanned;The infrared eye is used for inspection The object to be detected measured carries out In vivo detection;Described image collector is for acquiring the image for including the object to be detected.
In another embodiment, a kind of computer storage media is additionally provided, computer program is stored thereon with, institute State the step of executing the method described in above method embodiment when computer runs the computer program.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can Can also be electrical connection to be mechanical connection;It can be directly connected, can also indirectly connected through an intermediary, Ke Yishi Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
In the description of the present invention, it should be noted that term "center", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for the description present invention and simplify description, do not indicate or imply the indicated device or element must have a particular orientation, With specific azimuth configuration and operation, therefore it is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for description purposes only, and is not understood to indicate or imply relative importance.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, in another example, multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be by some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer read/write memory medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of step of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Store the medium of program code.
Finally it should be noted that:Embodiment described above, only specific implementation mode of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art In the technical scope disclosed by the present invention, it can still modify to the technical solution recorded in previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the protection in the present invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of auth method, which is characterized in that application identity verification machine, including:
After the certificate information for reading target certificate, infrared photography in a dormant state in the authentication machine is activated Device, to carry out In vivo detection to object to be detected by the infrared eye;
If the object to be detected is live body, the certificate information and target image are compared, to obtain comparison knot Fruit, the target image are the collected image for including the object to be detected of image acquisition device of the authentication machine.
2. according to the method described in claim 1, it is characterized in that, the certificate information for reading the target certificate includes:
The certificate information is read by the card reader in the authentication machine;
If the card reader does not read the certificate information within a preset period of time, open in the authentication machine Text region photographic device;
The target certificate is scanned by the Text region photographic device, the certificate to read the target certificate is believed Breath, wherein the Text region photographic device work during the infrared eye in a dormant state.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
After reading the certificate information by the Text region photographic device, and activating in the authentication machine Infrared eye before, make the Text region photographic device in a dormant state.
4. according to the method described in claim 2, it is characterized in that, if the card reader in the authentication machine is when default Between read the certificate information in section, then the infrared eye in the authentication machine is activated, with by described infrared Photographic device carries out In vivo detection to object to be detected included in target image.
5. according to the method described in claim 2, it is characterized in that, by described in the card reader reading in the authentication machine Certificate information includes:
After photosensitive blocking sensor in the card reader detects blocking information, pass through the reading in the authentication machine Card device reads the certificate information.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
Determine that the object to be detected in the first position information of the target image, and determines the object to be detected red Second position information in outer image, wherein the infrared image is the infrared eye to the object to be detected Carry out collected infrared image when In vivo detection;
Determined whether the certificate information and the target figure based on the first position information and the second position information As being compared.
7. according to the method described in claim 6, it is characterized in that, being based on the first position information and the second confidence Breath determines whether that the certificate information and the target image, which are carried out comparison, includes:
It is preset if it is determined that the alternate position spike between the first position information and the second position information is less than or equal to Difference then compares the certificate information and the target image.
8. a kind of authentication means, which is characterized in that application identity verification machine, including:
Unit is activated, suspend mode is in the authentication machine for after the certificate information for reading target certificate, activating The infrared eye of state, to carry out In vivo detection to object to be detected by the infrared eye;
Comparison unit, in the case where the object to be detected is live body, the certificate information and target image to be carried out Comparison, to obtain comparing result, the target image is that the image acquisition device of the authentication machine is collected comprising described The image of object to be detected.
9. a kind of authentication machine, which is characterized in that including:Photographic device, memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the processor realize above-mentioned power when executing the computer program Profit requires the method described in any one of 1 to 7;The photographic device includes:Infrared eye, image acquisition device and word are known When any one in other photographic device, the infrared eye and the Text region photographic device is activated, another In a dormant state;
The Text region photographic device reads the certificate information of target certificate for the card reader in the authentication machine When taking unsuccessfully, the target certificate is scanned;
The infrared eye is used to carry out In vivo detection to the object to be detected detected;
Described image collector is for acquiring the image for including the object to be detected.
10. a kind of computer storage media, which is characterized in that computer program is stored thereon with, described in the computer operation The step of method described in any one of the claims 1 to 7 is executed when computer program.
CN201810399171.4A 2018-04-28 2018-04-28 A kind of auth method, device, authentication machine and computer-readable medium Pending CN108596122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810399171.4A CN108596122A (en) 2018-04-28 2018-04-28 A kind of auth method, device, authentication machine and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810399171.4A CN108596122A (en) 2018-04-28 2018-04-28 A kind of auth method, device, authentication machine and computer-readable medium

Publications (1)

Publication Number Publication Date
CN108596122A true CN108596122A (en) 2018-09-28

Family

ID=63610640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810399171.4A Pending CN108596122A (en) 2018-04-28 2018-04-28 A kind of auth method, device, authentication machine and computer-readable medium

Country Status (1)

Country Link
CN (1) CN108596122A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135250A (en) * 2019-04-08 2019-08-16 一脉通(深圳)智能科技有限公司 A kind of auth method based on bio-identification, device, equipment and readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981477A (en) * 2012-11-26 2013-03-20 四川长虹电器股份有限公司 Refrigerator interior checking method based on multi-camera switching technology
CN105426137A (en) * 2015-11-06 2016-03-23 金航数码科技有限责任公司 Facial recognition-based secure printing audition system
CN105976467A (en) * 2016-05-09 2016-09-28 许敬承 Double-identification electronic lock
CN205876020U (en) * 2016-05-09 2017-01-11 苏豪源 Take infrared correlation controlling means of wireless linkage effect
CN107609515A (en) * 2017-09-13 2018-01-19 天津麒麟信息技术有限公司 A kind of face alignment system and method for the double verification based on platform of soaring
CN107729847A (en) * 2017-10-20 2018-02-23 阿里巴巴集团控股有限公司 A kind of certificate verification, auth method and device
CN207264409U (en) * 2017-10-17 2018-04-20 北京旷视科技有限公司 The testimony of a witness veritifies device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981477A (en) * 2012-11-26 2013-03-20 四川长虹电器股份有限公司 Refrigerator interior checking method based on multi-camera switching technology
CN105426137A (en) * 2015-11-06 2016-03-23 金航数码科技有限责任公司 Facial recognition-based secure printing audition system
CN105976467A (en) * 2016-05-09 2016-09-28 许敬承 Double-identification electronic lock
CN205876020U (en) * 2016-05-09 2017-01-11 苏豪源 Take infrared correlation controlling means of wireless linkage effect
CN107609515A (en) * 2017-09-13 2018-01-19 天津麒麟信息技术有限公司 A kind of face alignment system and method for the double verification based on platform of soaring
CN207264409U (en) * 2017-10-17 2018-04-20 北京旷视科技有限公司 The testimony of a witness veritifies device
CN107729847A (en) * 2017-10-20 2018-02-23 阿里巴巴集团控股有限公司 A kind of certificate verification, auth method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135250A (en) * 2019-04-08 2019-08-16 一脉通(深圳)智能科技有限公司 A kind of auth method based on bio-identification, device, equipment and readable medium

Similar Documents

Publication Publication Date Title
Boulkenafet et al. OULU-NPU: A mobile face presentation attack database with real-world variations
US9330322B2 (en) Controlled access to functionality of a wireless device
US9390340B2 (en) Image-based character recognition
US10546183B2 (en) Liveness detection
US10013624B2 (en) Text entity recognition
US10108961B2 (en) Image analysis for user authentication
Chingovska et al. On the effectiveness of local binary patterns in face anti-spoofing
US9652663B2 (en) Using facial data for device authentication or subject identification
US20180032828A1 (en) Face liveness detection method, terminal, server and storage medium
JP2018032391A (en) Liveness test method and apparatus
US10339402B2 (en) Method and apparatus for liveness detection
CN103118168B (en) The display control method and terminal of a kind of unprocessed information
US9697414B2 (en) User authentication through image analysis
Patel et al. Live face video vs. spoof face video: Use of moiré patterns to detect replay video attacks
US10305908B2 (en) Liveness detection
KR102180226B1 (en) Electronic device and method for securing using complex biometrics
US9607138B1 (en) User authentication and verification through video analysis
KR102223416B1 (en) User-authentication gestures
US9436883B2 (en) Collaborative text detection and recognition
JP6610906B2 (en) Activity detection method and device, and identity authentication method and device
Yue et al. Blind recognition of touched keys on mobile devices
US9985786B1 (en) Cross-device authentication
US20190012450A1 (en) Biometric-based authentication method, apparatus and system
KR101857287B1 (en) Method and apparatus of a gesture based biometric system
JP6878572B2 (en) Authentication based on face recognition

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