WO2019096008A1 - Identification method, computer device, and storage medium - Google Patents

Identification method, computer device, and storage medium Download PDF

Info

Publication number
WO2019096008A1
WO2019096008A1 PCT/CN2018/113084 CN2018113084W WO2019096008A1 WO 2019096008 A1 WO2019096008 A1 WO 2019096008A1 CN 2018113084 W CN2018113084 W CN 2018113084W WO 2019096008 A1 WO2019096008 A1 WO 2019096008A1
Authority
WO
WIPO (PCT)
Prior art keywords
identified
sample
face image
computer device
living body
Prior art date
Application number
PCT/CN2018/113084
Other languages
French (fr)
Chinese (zh)
Inventor
陈志博
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019096008A1 publication Critical patent/WO2019096008A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/165Detection; Localisation; Normalisation using facial parts and geometric relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive

Definitions

  • the embodiments of the present invention relate to the field of image recognition technologies, and in particular, to an identity recognition method, a computer device, and a storage medium.
  • the current identification method has a certain degree of defects.
  • the method of identifying by face is easy to be attacked by photos; for example, a person who does not have access control can use the photos of internal personnel to pass the access control smoothly, and the security is low.
  • the method of identifying by face is easy to cause recognition errors due to different angles of face image acquisition; for example, the same user, face images of certain angles can be successfully recognized, face images of certain angles The recognition fails and the recognition accuracy is low.
  • an identification method a computer device, and a storage medium are provided.
  • the computer device identifies whether the object to be identified is a living body
  • a computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
  • FIG. 1 is a schematic diagram of an application scenario of an identity recognition method provided by an embodiment of the present application.
  • FIG. 1A is a schematic diagram of another application scenario of an identity recognition method provided by an embodiment of the present application.
  • 1B is an internal structural diagram of a computer device of an identity recognition method provided by an embodiment of the present application.
  • 1C is another internal structural diagram of a computer device of an identity recognition method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an identity recognition method provided by an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of an identity recognition method provided by an embodiment of the present application.
  • 4a is a schematic flowchart of a method for acquiring a preset angle threshold in the embodiment of the present application
  • 4b is another schematic flowchart of a method for acquiring a preset angle threshold in the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application.
  • the embodiment of the present application provides an identification method, a device, and a storage device.
  • the identity identification method provided by the embodiment of the present application can be implemented in an identity.
  • the identification device can be, for example, a monitoring device. For example, as shown in FIG. 1, when an object to be identified (for example, a person) is to pass through a door or a gate, the identification device can identify whether the object to be identified is a living body, and if the object to be identified is a living body, it can pass its own camera module.
  • the photo attack can be effectively resisted, and the security of the recognition can be effectively improved.
  • the image can be avoided by performing matching detection by using the current face image whose face deflection angle is smaller than the preset angle threshold.
  • the recognition error caused by the excessive deflection angle of the face in the face improves the accuracy of recognition.
  • FIG. 1A is a diagram of an application environment in which an identity recognition method operates in an embodiment.
  • the application environment includes a terminal 110 and a server 120, wherein the terminal 110 and the server 120 communicate via a network.
  • the terminal 110 can be a smartphone, a tablet, a notebook, a desktop computer, etc., but is not limited thereto.
  • the current face image of the object to be recognized may be acquired from the server 120, and the current face image is transmitted to the terminal 110.
  • the terminal 110 may further determine whether the face deflection angle in the current face image is less than a preset angle threshold, when the face deflection angle is less than the preset angle threshold, and the current face image of the object to be identified matches the registered face image, The terminal 110 considers that the identity of the object to be identified is successful.
  • the internal structure of terminal 110 in FIG. 1A is as shown in FIG. 1B, which includes a processor, memory, network interface, input device, and display screen connected by a system bus.
  • the memory comprises a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by the processor, causes the processor to implement the identification method.
  • the internal memory can also store a computer program that, when executed by the processor, causes the processor to perform an identification method.
  • the display screen of the computer device may be a liquid crystal display or an electronic ink display screen
  • the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the computer device casing, and It can be an external keyboard, trackpad or mouse.
  • the internal structure of server 120 in FIG. 1A is as shown in FIG. 1C, which includes a processor, memory, and network interface connected by a system bus.
  • the memory includes a nonvolatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device can store an operating system, a database, and computer readable instructions.
  • the computer readable instructions when executed, may cause the processor to perform an identification method, the database for storing data, such as storing a current face image of the object to be identified.
  • the processor of the server 120 is used to provide computing and control capabilities to support the operation of the entire server 120.
  • the network interface of the server 120 is used to communicate with the external terminal 110 via a network connection, such as sending the current face image of the object to be identified to the terminal 110, and the like.
  • the structure shown in FIG. 1B or FIG. 1C is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation of a terminal or a server to which the solution of the present application is applied.
  • the specific server may include a comparison diagram. More or fewer components are shown, or some components are combined, or have different component arrangements. It will be understood by those skilled in the art that the structure shown in FIG. 1B or FIG.
  • 1C is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on a server to which the solution of the present application is applied, and a specific server. More or fewer components than those shown in the figures may be included, or some components may be combined, or have different component arrangements.
  • This embodiment will be described from the perspective of an identity recognition device, as shown in FIG. 2, and is applied to a terminal or a server in the application environment, and includes the following steps:
  • Step 201 it is determined whether the object to be identified is a living body, if it is a living body, step S202 is performed, otherwise, step 206 is performed;
  • the identification method of the embodiment can be used in the occasions where identification is required, such as gates, access control, and security supervision. Specifically, when the object to be identified is to pass through the gate, the door, and the security zone, it is possible to identify whether the object to be identified is a living body.
  • a method of identifying whether the object to be identified is a living body, such as an action command detection method, a visible light detection method, a thermal infrared detection method, or the like.
  • the motion instruction detection method may, for example, generate an action instruction prompt (such as blinking, nodding, shaking, turning left, right turning, etc.), and determining whether the action made by the object to be identified matches the generated action prompt instruction, and if it matches, determining The object to be identified is a living body.
  • an action instruction prompt such as blinking, nodding, shaking, turning left, right turning, etc.
  • the visible light detecting method may, for example, use an visible light camera to collect an image of an object to be recognized, detect whether a face is imaged in the collected image, and if the face is imaged, determine whether the object to be identified is a living body; or extract a facial feature in the collected image.
  • Point such as eyebrow, eye, nose, mouth
  • the thermal infrared detection method can use an infrared camera to collect an image of an object to be identified, detect whether a face is imaged in the captured image, and if the face is imaged, determine that the object to be identified is a living body; or extract the same in the captured image.
  • the temperature line feature compares the extracted isotherm feature with the same-temperature feature of the thermal infrared template image stored in the database. If the matching degree of the same-temperature feature is higher than a preset value, the object to be identified is determined to be Living body.
  • the motion command detection can ensure that the detected object is dynamically changed.
  • the visible light detection and the thermal infrared detection can distinguish whether the detected object is a video object or a real object. Therefore, in this embodiment, the above three methods can be combined for living body recognition.
  • the motion command detection method, the visible light detection method, and the thermal infrared detection method are used for detection.
  • the detection results of the above three detection methods are all living bodies, the object to be identified is determined to be a living body, thereby improving the accuracy of the living body recognition.
  • Step 202 Acquire a current face image of the object to be identified.
  • the current face image of the object to be recognized may be acquired by the camera module of the camera.
  • the camera device may be a camera, a camera, a camera, etc., and after acquiring the current face image, the face in the current face image may be detected.
  • Deflection angle the specific detection method can be as follows:
  • the key points of the face in the current face image are located; the key points of the face are generally points with significant features on the face of the person, for example, the inner eye point, the nose point, and the two corner points of the two eyes.
  • the face deflection angle in the current face image is determined according to the coordinates of the located key points. Since there is a certain proportional relationship between various parts of the human face, there is a specific correspondence between the key points of the face in the extracted frontal face image. Obtaining a correspondence between the located key points according to the coordinates of the key points that are located, and comparing the correspondence between the located key points and the key points in the frontal face image, The face deflection angle in the current face image is determined.
  • Step 203 Determine whether the face deflection angle in the current face image is less than a preset angle threshold. If it is less, perform step 204. Otherwise, return to step 202 to re-acquire the current face image of the object to be identified.
  • the current face image is available; if the face deflection angle in the current face image is not less than the preset angle threshold, the current face is If the image is not available, the current face image of the object to be identified may be retrieved. When reacquiring, the object to be identified may be prompted to be deflected or moved according to an instruction to quickly obtain a face image of a suitable angle.
  • Step 204 detecting whether the current face image of the object to be identified matches the registered face image, if yes, step S205 is performed, otherwise, step 206 is performed;
  • the registered face image refers to the face image provided by the object to be recognized at the time of registration.
  • the current face image and the face feature information in the registered face image may be extracted, the related information such as the shape, the size, and the relative information. Location, color, etc.
  • the face information is compared one by one, and the matching degree between the current face image and the registered face image is obtained according to the comparison result. If the matching degree is greater than the preset matching degree threshold, the current face image and the registered face image are considered as match.
  • Step S205 the identity recognition of the object to be identified is successful
  • Step 206 The identity recognition of the object to be identified fails.
  • the object to be identified is prohibited from passing through the gate, the door, and the like. Further, an alarm message can be generated and sent to the relevant manager.
  • the object to be identified when the object to be identified is identified, it is first identified whether the object to be identified is a living body, which can effectively resist photo attacks and improve the security of the recognition; when the object to be identified is a living body, obtain the to-be-identified
  • the current face image of the object is only matched when the face deflection angle in the current face image of the acquired object to be recognized is less than the preset angle threshold, so that the face deflection angle in the image can be avoided. Large identification errors lead to improved recognition accuracy.
  • the identity identification method in this embodiment includes the following steps:
  • Step 301 Obtain identification information of an object to be identified.
  • the identity recognition apparatus of this embodiment can also register the object to be identified.
  • the specific registration process may include: collecting identification information of the object to be identified and a registered face image, storing the identification information of the object to be identified and the registered face image in a database, and forming an identifier for carrying the object to be identified for the object to be identified
  • NFC Near Field Communication
  • the identification device may obtain the identification information of the object to be identified, and the specific acquisition method may be: acquiring the identification information of the object to be identified from the NFC card of the object to be identified. For example, after the object to be identified enters the identification area, the NFC card of the NFC card can be placed on the NFC sensor module of the identity recognition device, and the NFC sensor module reads the identification information of the object to be identified stored in the NFC card. Acquisition of identification information of the object to be identified.
  • the identification device may provide an information input window, and the object to be identified may input its own identification information in the information input window, and the identity recognition device acquires its own identification information input by the object to be identified. In this way, the identification can be continued even if the NFC card of the object to be identified is forgotten or lost.
  • Step 302 detecting whether there is identification information of the object to be identified in the database, if yes, executing step 303, otherwise, performing step 309;
  • Step 303 Extract a registered face image from the database according to the identification information of the object to be identified.
  • Step 304 Identify whether the object to be identified is a living body
  • the motion instruction detection method, the visible light detection method, and the thermal infrared detection method can be simultaneously used for detecting and identifying.
  • the detection results of the above three detection methods are all living bodies, determining that the object to be identified is a living body, Improve the accuracy of living recognition.
  • Step 305 Acquire a current face image of the object to be identified.
  • the current face image of the object to be identified may be acquired by the camera module of the identity recognition device.
  • the camera module may be, for example, a camera, a camera, a camera, etc., after acquiring the current face image, the camera image may be detected in the current face image.
  • the angle of deflection of the face can be as follows:
  • the key points of the face in the current face image are located; the key points of the face are generally points with significant features on the face of the person, for example, the inner eye point, the nose point, and the two corner points of the two eyes.
  • the face deflection angle in the current face image is determined according to the coordinates of the located key points. Since there is a certain proportional relationship between various parts of the human face, there is a specific correspondence between the key points of the face in the extracted frontal face image. Obtaining a correspondence between the located key points according to the coordinates of the key points that are located, and comparing the correspondence between the located key points and the key points in the frontal face image, The face deflection angle in the current face image is determined.
  • Step 306 determining whether the face deflection angle in the current face image is less than a preset angle threshold, if less, step 307 is performed, otherwise, step 309 is performed;
  • the preset angle threshold can be obtained by random forest algorithm when registering.
  • the specific acquisition process can be seen in Figure 4a and Figure 4b, including the following steps:
  • Step 401 Obtain a sample set of an object to be identified.
  • a plurality of face images of the object to be identified are collected by the camera module of the identity recognition device, and a face deflection angle in each face image is obtained, and one of the objects to be identified is acquired.
  • the face image and the corresponding face deflection angle are taken as one sample, and a large number of samples constitute a sample set of the object to be identified.
  • Step 402 Mark each sample to generate a sample label of each sample
  • the specific marking method is, for example, detecting whether the face image in each sample matches the registered face image; marking the sample corresponding to the matched face image as a positive sample, and marking the sample corresponding to the unmatched face image Is a negative sample. Positive samples can be identified by the value "1" and negative samples can be represented by the value "0".
  • Step 403 Randomly extract a preset number of samples from the sample set to form a plurality of training sets
  • the number of training sets and the number of samples included in the training set can be set according to actual needs. For example, it can be set according to factors such as the computing power of the identification device and the number of samples in the sample set. If each training set includes M samples, the sample labels for each of the training sets and the training set can be as shown in Table 1:
  • Step 404 Generate a corresponding decision tree according to each training set.
  • the splitting condition is determined according to the face deflection angle included in each training set and the sample label of the corresponding sample, and the corresponding decision tree is generated according to the splitting condition.
  • a training set correspondingly generates a decision tree. For example, as shown in FIG. 4b, when there are N training sets, N decision trees are generated.
  • the plurality of decision trees generated by steps 401 to 404 constitute a random forest.
  • Step 405 Perform prediction on each sample in the sample set by using multiple decision trees to obtain a prediction result.
  • each decision tree When predicting any one sample, each decision tree outputs a prediction result for the sample, and N decision trees will output N prediction results, and the prediction result may be positive (image matching success) or negative (image mismatch) ), based on the prediction results of all the decision trees on the sample, the probability that the sample is a positive sample can be determined. For example, 10 decision trees are generated. The prediction results of the 9 decision trees are positive for the sample, and the remaining one decision tree is negative for the sample. The probability that the sample is a positive sample is 0.9.
  • Step 406 Determine a preset angle threshold according to the prediction result of each sample.
  • the sample with the highest probability of the positive sample in the sample set (ie, the sample with the most positive prediction result) may be determined, and the face deflection angle in the sample with the highest probability of the positive sample is taken as the pre-predetermined Set the angle threshold.
  • steps 401-406 may be repeated to determine different preset angle thresholds for different objects to be identified to further improve the accuracy of the recognition.
  • steps 401 to 406 may be repeated to determine a preset angle threshold for the new object.
  • steps 401-406 use a random forest algorithm to obtain a preset angle threshold.
  • a certain number of samples may be extracted from the sample set to form a test set.
  • the test set may be used to test the prediction accuracy of the random forest, if the prediction accuracy does not satisfy the accuracy. If required, the training set can be reconstructed and a random forest generated until the generated random forest meets the accuracy requirements.
  • Step 307 detecting whether the current face image of the object to be identified matches the registered face image, if yes, step 308 is performed, otherwise, step 309 is performed;
  • Step 308 The identity of the object to be identified is successfully identified.
  • Step 309 The identity of the object to be identified fails.
  • the object to be identified is prohibited from passing through the gate, the door, etc., and further, the alarm information may be generated, and the alarm information is sent to the relevant management personnel.
  • a computer device is also provided.
  • the internal structure of the computer device can be as shown in FIG. 1B or FIG. 1C.
  • the computer device includes an identity recognition device, and each module includes each module. It is implemented in whole or in part by software, hardware or a combination thereof.
  • the present application further provides an identity recognition apparatus.
  • the apparatus of this embodiment includes: an identification unit 501, a first acquisition unit 502, a determination unit 503, and a first detection.
  • Unit 504 is as follows:
  • the identifying unit 501 is configured to identify whether the object to be identified is a living body
  • the first obtaining unit 502 is configured to acquire a current face image of the object to be identified when the object to be identified is a living body;
  • a determining unit 503 configured to determine whether a face deflection angle in the current face image is less than a preset angle threshold
  • the first detecting unit 504 is configured to detect, when the face deflection angle in the current face image is less than a preset angle threshold, whether the current face image of the object to be identified matches the registered face image, and if yes, Then, the identity of the object to be identified is successful.
  • the apparatus further includes:
  • a second acquisition unit 505 configured to acquire a sample set of the object to be identified, where each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
  • the constituting unit 507 is configured to randomly extract a preset number of samples from the sample set to form a plurality of training sets;
  • a generating unit 508, configured to generate a corresponding decision tree according to each training set
  • a prediction unit 509 configured to predict, by using a plurality of decision trees, each sample in the sample set to obtain a prediction result
  • the determining unit 510 is configured to determine the preset angle threshold according to the prediction result of each sample.
  • the apparatus further includes:
  • a marking unit 506 is configured to mark each sample to generate a sample label for each sample.
  • the marking unit 506 is specifically configured to:
  • the determining unit 510 is specifically configured to:
  • the apparatus further includes:
  • the second detecting unit 512 is configured to detect whether the identifier information of the object to be identified exists in the database
  • the extracting unit 513 is configured to extract the registered face image from the database according to the identification information of the object to be identified when the identification information of the object to be identified exists in the database.
  • the apparatus further includes:
  • the third obtaining unit 511 is configured to acquire the identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified, or obtain the identification information of the object to be identified input by the object to be identified .
  • the identifying unit 501 is specifically configured to:
  • the action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
  • the identity identification device provided by the foregoing embodiment is used for identification, only the division of each functional module is used for example. In an actual application, the function distribution may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the identity recognition device and the identity identification method provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the device of the present embodiment can identify the object to be identified as a living body by the identification unit, and can effectively resist the photo attack and improve the security of the identification; when the object to be identified is a living body, the first acquiring unit acquires the object to be identified.
  • the current face image is detected by the detecting unit only when the face deflection angle in the current face image of the object to be recognized is less than the preset angle threshold, so that the face deflection angle in the image can be avoided. Large identification errors lead to improved recognition accuracy.
  • the embodiment of the present application further provides an identification device.
  • the device may include a radio frequency (RF) circuit 601, and a memory 602 including one or more computer readable storage media.
  • RF radio frequency
  • WiFi Wireless Fidelity
  • the device structure illustrated in FIG. 7 does not constitute a limitation to the device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the RF circuit 601 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 608. In addition, the data related to the uplink is sent to the base station. .
  • the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM), a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication.
  • SIM Subscriber Identity Module
  • LNA Low Noise Amplifier
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). , Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by running software programs and modules stored in the memory 602.
  • the memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the device (such as audio data, phone book, etc.).
  • memory 602 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 602 may also include a memory controller to provide access to memory 602 by processor 608 and input unit 603.
  • the input unit 603 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 603 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 608 is provided and can receive commands from the processor 608 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 603 can also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 604 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 604 can include a display panel.
  • the display panel can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or nearby, it is transmitted to the processor 608 to determine the type of the touch event, and then the processor 608 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the device may also include at least one type of sensor 605, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the device moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the audio circuit 606, the speaker, and the microphone provide an audio interface between the user and the terminal.
  • the audio circuit 606 can transmit the converted electrical signal of the audio data to the speaker, and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and then converted.
  • the audio data is then processed by the audio data output processor 608, sent via RF circuitry 601 to, for example, another device, or the audio data is output to memory 602 for further processing.
  • the audio circuit 606 may also include an earbud jack to provide communication of the peripheral earphones to the device.
  • WiFi is a short-range wireless transmission technology
  • the device can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 607, which provides wireless broadband Internet access for users.
  • FIG. 7 shows the WiFi module 607, it can be understood that it does not belong to the essential configuration of the device, and may be omitted as needed within the scope of not changing the essence of the application.
  • Processor 608 is the control center of the device, interconnecting various portions of the entire device using various interfaces and lines, executing or executing software programs and/or modules stored in memory 602, and invoking data stored in memory 602, executing The various functions of the terminal and processing data to monitor the device as a whole.
  • the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 608.
  • the device also includes a power source 609 (such as a battery) that supplies power to the various components.
  • a power source 609 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 608 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 609 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the device may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 608 in the device loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and is executed by the processor 608 to be stored in the memory.
  • the application in 602 to implement various functions:
  • the threshold value is smaller than the preset angle threshold, it is detected whether the current face image of the object to be identified matches the registered face image. If the image is matched, the identity of the object to be identified is successfully identified.
  • the processor 608 is further configured to perform the following steps before identifying whether the object to be identified is a living body:
  • each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle
  • the preset angle threshold is determined based on the prediction result of each sample.
  • the processor 608 is further configured to perform the following steps:
  • Each sample is labeled to generate a sample label for each sample.
  • the processor 608 when each sample is tagged to generate a sample tag for each sample, the processor 608 is specifically configured to perform the following steps:
  • the samples corresponding to the matched face images are marked as positive samples, and the samples corresponding to the unmatched face images are marked as negative samples.
  • the processor 608 when determining the preset angle threshold according to the prediction result of each sample, is specifically configured to perform the following steps:
  • the processor 608 is further configured to perform the following steps before identifying whether the object to be identified is a living body:
  • the processor 608 before detecting whether the identification information of the object to be identified exists in the database, the processor 608 is further configured to perform the following steps:
  • the processor 608 when identifying whether the object to be identified is a living body, the processor 608 is specifically configured to perform the following steps:
  • the action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
  • the living body identification device of the embodiment first identifies whether the object to be identified is a living body when the object to be identified is identified, so that the photo attack can be effectively defended and the security of the identification is improved; when the object to be identified is a living body, Acquiring the current face image of the object to be identified, and performing matching detection of the image only when the face deflection angle in the current face image of the acquired object to be recognized is less than a preset angle threshold, thereby avoiding the face in the image
  • the recognition error caused by the excessive deflection angle improves the accuracy of recognition.
  • the embodiment of the present application further provides a storage device, where the storage device stores a computer program, and when the computer program runs on a computer, causes the computer to perform the video transcoding method in any of the above embodiments, such as: Determining whether the object to be identified is a living body; if the object to be identified is a living body, acquiring a current face image of the object to be identified; determining whether a face deflection angle in the current face image is less than a preset angle threshold; If the threshold value is smaller than the preset angle threshold, it is detected whether the current face image of the object to be identified matches the registered face image. If the image is matched, the identity of the object to be identified is successfully identified.
  • the various steps in the various embodiments of the present application are not necessarily performed in the order indicated by the steps. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM
  • the computer program may be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, and may include, for example, an identification method during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Abstract

Embodiments of the present application provide an identification method, a computer device, and a storage medium. The identification method comprises: identifying whether an object to be identified is a living body; when the computer device identifies that the object to be identified is the living body, obtaining a current face image of the object to be identified; determining whether a face deflection angle in the current face image is less than a preset angle threshold; and when the face deflection angle is less than the preset angle threshold and the current face image of the object to be identified matches a registered face image, succeeding in identifying the object to be identified.

Description

身份识别方法、计算机设备及存储介质Identification method, computer device and storage medium
本申请要求于2017年11月20日提交中国专利局,申请号为2017111595391,申请名称为“身份识别方法、装置及存储设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application entitled "Identification Method, Apparatus and Storage Device" by the Chinese Patent Office, filed on November 20, 2017, the entire disclosure of which is hereby incorporated by reference. in.
技术领域Technical field
本申请实施例涉及图像识别技术领域,具体涉及一种身份识别方法、计算机设备及存储介质。The embodiments of the present invention relate to the field of image recognition technologies, and in particular, to an identity recognition method, a computer device, and a storage medium.
背景技术Background technique
目前的身份识别方法,存在一定程度的缺陷。例如:通过人脸进行身份识别的方法,容易被照片攻击;比如,一个没有门禁权限的人,使用内部人员的照片即可顺利通过门禁,安全性较低。另外,通过人脸进行身份识别的方法,容易因人脸图像的采集角度不同,导致出现识别错误;比如,同一个用户,某些角度的人脸图像可以识别成功,某些角度的人脸图像则识别失败,识别的准确率较低。The current identification method has a certain degree of defects. For example, the method of identifying by face is easy to be attacked by photos; for example, a person who does not have access control can use the photos of internal personnel to pass the access control smoothly, and the security is low. In addition, the method of identifying by face is easy to cause recognition errors due to different angles of face image acquisition; for example, the same user, face images of certain angles can be successfully recognized, face images of certain angles The recognition fails and the recognition accuracy is low.
发明内容Summary of the invention
根据本申请提供的各种实施例,提供了一种身份识别方法、计算机设备及存储介质。According to various embodiments provided herein, an identification method, a computer device, and a storage medium are provided.
本申请实施例提供的身份识别方法,包括:The identity identification method provided by the embodiment of the present application includes:
计算机设备识别待识别对象是否为活体;The computer device identifies whether the object to be identified is a living body;
当计算机设备识别出所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the computer device recognizes that the object to be identified is a living body;
判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:A computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
识别待识别对象是否为活体;Identify whether the object to be identified is a living body;
当识别出所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the object to be identified is identified as a living body;
判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
识别待识别对象是否为活体;Identify whether the object to be identified is a living body;
当识别出所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the object to be identified is identified as a living body;
判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请实施例所提供的身份识别方法的一个应用场景示意图;1 is a schematic diagram of an application scenario of an identity recognition method provided by an embodiment of the present application;
图1A是本申请实施例所提供的身份识别方法的另一个应用场景示意图;1A is a schematic diagram of another application scenario of an identity recognition method provided by an embodiment of the present application;
图1B是本申请实施例所提供的身份识别方法的计算机设备的内部结构 图;1B is an internal structural diagram of a computer device of an identity recognition method provided by an embodiment of the present application;
图1C是本申请实施例所提供的身份识别方法的计算机设备的另一内部结构图;1C is another internal structural diagram of a computer device of an identity recognition method provided by an embodiment of the present application;
图2是本申请实施例所提供的身份识别方法的一个流程示意图;2 is a schematic flowchart of an identity recognition method provided by an embodiment of the present application;
图3是本申请实施例所提供的身份识别方法的另一流程示意图;3 is another schematic flowchart of an identity recognition method provided by an embodiment of the present application;
图4a是本申请实施例中预设角度阈值的获取方法的一个流程示意图;4a is a schematic flowchart of a method for acquiring a preset angle threshold in the embodiment of the present application;
图4b是本申请实施例中预设角度阈值的获取方法的另一流程示意图;4b is another schematic flowchart of a method for acquiring a preset angle threshold in the embodiment of the present application;
图5是本申请实施例所提供的身份识别装置的一个结构示意图;FIG. 5 is a schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application; FIG.
图6是本申请实施例所提供的身份识别装置的另一结构示意图;6 is another schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application;
图7是本申请实施例所提供的身份识别装置的另一结构示意图。FIG. 7 is another schematic structural diagram of an identity recognition apparatus according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
由于现有的身份识别方法,存在不够安全,识别准确率低等问题,因而本申请实施例提供了一种身份识别方法、装置及存储设备,本申请实施例提供的身份识别方法可实施在身份识别装置中,身份识别装置例如可以为监控设备。例如图1所示,当待识别对象(例如人)要通过门禁或闸机时,身份识别装置可以识别待识别对象是否为活体,若所述待识别对象为活体,则可以通过自身的摄像模块获取所述待识别对象的当前人脸图像,判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值,若小于所述预设角度阈值,则检测所述待识别对象的当前人脸图像与注册人脸图像是否匹配,若所述当前人脸图像与注册人脸图像匹配,则所述待识别对象的身份识别成功,身份识别成功之后,可以允许待识别对象通过该门禁或闸机。本申请实施例中,通过对待识别对象进行活体识别,可以有效地抵御照片攻击,提高识别的安全性;通过采用人脸偏转角度小于预设角度阈值的当前人脸图像进行匹配检测,能够避免图像中的人脸偏转角度过大导致的识别错误,提高识别的准确率。Because the existing identification method has the problems of insufficient security and low recognition accuracy, the embodiment of the present application provides an identification method, a device, and a storage device. The identity identification method provided by the embodiment of the present application can be implemented in an identity. In the identification device, the identification device can be, for example, a monitoring device. For example, as shown in FIG. 1, when an object to be identified (for example, a person) is to pass through a door or a gate, the identification device can identify whether the object to be identified is a living body, and if the object to be identified is a living body, it can pass its own camera module. Obtaining a current face image of the object to be identified, determining whether a face deflection angle in the current face image is smaller than a preset angle threshold, and if the preset angle threshold is smaller, detecting a current current of the object to be identified Whether the face image matches the registered face image, and if the current face image matches the registered face image, the identity of the object to be identified is successful, and after the identity is successfully recognized, the object to be identified may be allowed to pass the access control or Gate machine. In the embodiment of the present application, by performing living body recognition on the object to be identified, the photo attack can be effectively resisted, and the security of the recognition can be effectively improved. The image can be avoided by performing matching detection by using the current face image whose face deflection angle is smaller than the preset angle threshold. The recognition error caused by the excessive deflection angle of the face in the face improves the accuracy of recognition.
以下将分别进行详细说明,以下各个实施例的描述先后顺序并不构成对具体实施先后顺序的限定。The detailed descriptions of the following embodiments are not intended to limit the specific implementation order.
图1A为一个实施例中身份识别方法运行的应用环境图。如图1A所示,该应用环境包括终端110、服务器120,其中终端110和服务器120通过网络进行通信。FIG. 1A is a diagram of an application environment in which an identity recognition method operates in an embodiment. As shown in FIG. 1A, the application environment includes a terminal 110 and a server 120, wherein the terminal 110 and the server 120 communicate via a network.
终端110可为智能手机、平板电脑、笔记本电脑、台式计算机等,但并不局限于此。当终端110识别出待识别对象为活体时,可以从服务器120获取待识别对象的当前人脸图像,并将当前人脸图像发送至终端110。终端110进一步可判断当前人脸图像中的人脸偏转角度是否小于预设角度阈值,当人脸偏转角度小于预设角度阈值,且待识别对象的当前人脸图像与注册人脸图像匹配时,终端110认为待识别对象的身份识别成功。The terminal 110 can be a smartphone, a tablet, a notebook, a desktop computer, etc., but is not limited thereto. When the terminal 110 recognizes that the object to be identified is a living body, the current face image of the object to be recognized may be acquired from the server 120, and the current face image is transmitted to the terminal 110. The terminal 110 may further determine whether the face deflection angle in the current face image is less than a preset angle threshold, when the face deflection angle is less than the preset angle threshold, and the current face image of the object to be identified matches the registered face image, The terminal 110 considers that the identity of the object to be identified is successful.
在一个实施例中,图1A中的终端110的内部结构如图1B所示,该终端110包括通过系统总线连接的处理器、存储器、网络接口、输入装置和显示屏。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现身份识别方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行身份识别方法。计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, the internal structure of terminal 110 in FIG. 1A is as shown in FIG. 1B, which includes a processor, memory, network interface, input device, and display screen connected by a system bus. Wherein, the memory comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by the processor, causes the processor to implement the identification method. The internal memory can also store a computer program that, when executed by the processor, causes the processor to perform an identification method. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touchpad provided on the computer device casing, and It can be an external keyboard, trackpad or mouse.
在一个实施例中,图1A中的服务器120的内部结构如图1C所示,该服务器120包括通过系统总线连接的处理器、存储器和网络接口。存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质可存储操作系统、数据库和计算机可读指令。该计算机可读指令被执行时,可使得处理器执行一种身份识别方法,数据库用于存储数据,如存储待识别对象的当前人脸图像。该服务器120的处理器用于提供计算和控制能力,支撑整个服务器120 的运行。该服务器120的网络接口用于与外部的终端110通过网络连接通信,比如向终端110发送待识别对象的当前人脸图像等。图1B或图1C中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端或服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。本领域技术人员可以理解,图1B或图1C中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。本实施例将从身份识别装置的角度进行描述,如图2所示,以应用于上述应用环境中的终端或服务器来举例说明,包括以下步骤:In one embodiment, the internal structure of server 120 in FIG. 1A is as shown in FIG. 1C, which includes a processor, memory, and network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device can store an operating system, a database, and computer readable instructions. The computer readable instructions, when executed, may cause the processor to perform an identification method, the database for storing data, such as storing a current face image of the object to be identified. The processor of the server 120 is used to provide computing and control capabilities to support the operation of the entire server 120. The network interface of the server 120 is used to communicate with the external terminal 110 via a network connection, such as sending the current face image of the object to be identified to the terminal 110, and the like. The structure shown in FIG. 1B or FIG. 1C is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation of a terminal or a server to which the solution of the present application is applied. The specific server may include a comparison diagram. More or fewer components are shown, or some components are combined, or have different component arrangements. It will be understood by those skilled in the art that the structure shown in FIG. 1B or FIG. 1C is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on a server to which the solution of the present application is applied, and a specific server. More or fewer components than those shown in the figures may be included, or some components may be combined, or have different component arrangements. This embodiment will be described from the perspective of an identity recognition device, as shown in FIG. 2, and is applied to a terminal or a server in the application environment, and includes the following steps:
步骤201、识别待识别对象是否为活体,若为活体,则执行步骤S202,否则,执行步骤206; Step 201, it is determined whether the object to be identified is a living body, if it is a living body, step S202 is performed, otherwise, step 206 is performed;
本实施例的身份识别方法,可以用在闸机、门禁、安监等需要进行身份识别的场合。具体地,可以在待识别对象要通过闸机、门禁、安监区时,识别待识别对象是否为活体。The identification method of the embodiment can be used in the occasions where identification is required, such as gates, access control, and security supervision. Specifically, when the object to be identified is to pass through the gate, the door, and the security zone, it is possible to identify whether the object to be identified is a living body.
识别待识别对象是否为活体的方法,例如动作指令检测法、可见光检测法、热红外检测法等。A method of identifying whether the object to be identified is a living body, such as an action command detection method, a visible light detection method, a thermal infrared detection method, or the like.
动作指令检测法,例如,可以生成动作指令提示(比如眨眼、点头、摇头、左转、右转等),判断待识别对象所作出的动作是否与生成的动作提示指令匹配,若匹配,则确定待识别对象为活体。The motion instruction detection method may, for example, generate an action instruction prompt (such as blinking, nodding, shaking, turning left, right turning, etc.), and determining whether the action made by the object to be identified matches the generated action prompt instruction, and if it matches, determining The object to be identified is a living body.
可见光检测法,例如,可以利用可见光摄像头采集待识别对象的图像,检测采集的图像中是否有人脸成像,若有人脸成像,则确定待识别对象为活体;或者提取采集的图像中的人脸特征点(例如眉、眼、鼻、口),将提取的人脸特征点与数据库中存储的可见光模板图像的人脸特征点进行比对,若特征点匹配程度高于某个预设值,则确定待识别对象为活体。The visible light detecting method may, for example, use an visible light camera to collect an image of an object to be recognized, detect whether a face is imaged in the collected image, and if the face is imaged, determine whether the object to be identified is a living body; or extract a facial feature in the collected image. Point (such as eyebrow, eye, nose, mouth), compare the extracted face feature points with the face feature points of the visible light template image stored in the database, if the feature point matching degree is higher than a preset value, Determine that the object to be identified is a living body.
热红外检测法,例如,可以利用热红外摄像头采集待识别对象的图像,检测采集的图像中是否有人脸成像,若有人脸成像,则确定待识别对象为活体; 或者提取采集的图像中的同温线特征,将提取的同温线特征与数据库中存储的热红外模板图像的同温线特征进行比对,若同温线特征匹配程度高于某个预设值,则确定待识别对象为活体。The thermal infrared detection method, for example, can use an infrared camera to collect an image of an object to be identified, detect whether a face is imaged in the captured image, and if the face is imaged, determine that the object to be identified is a living body; or extract the same in the captured image. The temperature line feature compares the extracted isotherm feature with the same-temperature feature of the thermal infrared template image stored in the database. If the matching degree of the same-temperature feature is higher than a preset value, the object to be identified is determined to be Living body.
动作指令检测可以确保被检测对象是动态变化的,可见光检测和热红外检测可以区分被检测对象是视频对象还是真实对象,因而,本实施例中,可以将以上三种方法结合起来用于活体识别,即同时采用动作指令检测法、可见光检测法、热红外检测法进行检测,在以上三种检测方法的检测结果均为活体时,确定待识别对象为活体,以此提高活体识别的准确度。The motion command detection can ensure that the detected object is dynamically changed. The visible light detection and the thermal infrared detection can distinguish whether the detected object is a video object or a real object. Therefore, in this embodiment, the above three methods can be combined for living body recognition. At the same time, the motion command detection method, the visible light detection method, and the thermal infrared detection method are used for detection. When the detection results of the above three detection methods are all living bodies, the object to be identified is determined to be a living body, thereby improving the accuracy of the living body recognition.
步骤202、获取所述待识别对象的当前人脸图像;Step 202: Acquire a current face image of the object to be identified.
具体地,可以通过自身的摄像模块获取所述待识别对象的当前人脸图像,摄像设备例如可以为摄像头、相机、摄影机等,获取当前人脸图像之后,可以检测当前人脸图像中的人脸偏转角度,具体检测方法可如下:Specifically, the current face image of the object to be recognized may be acquired by the camera module of the camera. The camera device may be a camera, a camera, a camera, etc., and after acquiring the current face image, the face in the current face image may be detected. Deflection angle, the specific detection method can be as follows:
定位当前人脸图像中的人脸的关键点;人脸的关键点一般为人脸上具有显著特征的点,例如,两个眼睛的内眼点、鼻尖点、两嘴角点。The key points of the face in the current face image are located; the key points of the face are generally points with significant features on the face of the person, for example, the inner eye point, the nose point, and the two corner points of the two eyes.
根据定位出的所述关键点的坐标,确定当前人脸图像中的人脸偏转角度。由于人脸的各个部位之间有着一定的比例关系,因此,提取到的正面人脸图像中的人脸的各个关键点之间具有特定的对应关系。根据定位出的所述关键点的坐标获取定位出的关键点之间的对应关系,将定位出的关键点之间的对应关系与正面人脸图像中的关键点的对应关系进行对比分析,可以确定出当前人脸图像中的人脸偏转角度。The face deflection angle in the current face image is determined according to the coordinates of the located key points. Since there is a certain proportional relationship between various parts of the human face, there is a specific correspondence between the key points of the face in the extracted frontal face image. Obtaining a correspondence between the located key points according to the coordinates of the key points that are located, and comparing the correspondence between the located key points and the key points in the frontal face image, The face deflection angle in the current face image is determined.
步骤203、判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值,若小于,则执行步骤204,否则,返回步骤202,重新获取所述待识别对象的当前人脸图像;Step 203: Determine whether the face deflection angle in the current face image is less than a preset angle threshold. If it is less, perform step 204. Otherwise, return to step 202 to re-acquire the current face image of the object to be identified.
若当前人脸图像中的人脸偏转角度小于预设角度阈值,则说明当前人脸图像是可用的;若当前人脸图像中的人脸偏转角度不小于预设角度阈值,则说明当前人脸图像是不可用的,则可以重新获取所述待识别对象的当前人脸图像。重新获取时,可以提示所述待识别对象按照指令进行偏转或移动,以快速获取到合适角度的人脸图像。If the face deflection angle in the current face image is less than the preset angle threshold, the current face image is available; if the face deflection angle in the current face image is not less than the preset angle threshold, the current face is If the image is not available, the current face image of the object to be identified may be retrieved. When reacquiring, the object to be identified may be prompted to be deflected or moved according to an instruction to quickly obtain a face image of a suitable angle.
步骤204、检测所述待识别对象的当前人脸图像与注册人脸图像是否匹配,若匹配,则执行步骤S205,否则,执行步骤206; Step 204, detecting whether the current face image of the object to be identified matches the registered face image, if yes, step S205 is performed, otherwise, step 206 is performed;
注册人脸图像,指的是待识别对象在注册时提供的人脸图像。The registered face image refers to the face image provided by the object to be recognized at the time of registration.
具体地,可以提取当前人脸图像以及注册人脸图像中的各个人脸特征信息,人脸特征信息例如眉、眼、鼻、口、脸等的相关信息,该相关信息比如形状、大小、相对位置、颜色等信息。将各种人脸特征信息逐一比对,根据比对结果得到当前人脸图像与注册人脸图像的匹配度,若匹配度大于预设匹配度阈值,则认为当前人脸图像与注册人脸图像匹配。Specifically, the current face image and the face feature information in the registered face image, the face feature information such as the eyebrow, the eye, the nose, the mouth, the face, and the like may be extracted, the related information such as the shape, the size, and the relative information. Location, color, etc. The face information is compared one by one, and the matching degree between the current face image and the registered face image is obtained according to the comparison result. If the matching degree is greater than the preset matching degree threshold, the current face image and the registered face image are considered as match.
步骤S205、所述待识别对象的身份识别成功;Step S205, the identity recognition of the object to be identified is successful;
在所述待识别对象的身份识别成功时,可以作进行进一步的操作,例如打开闸机、门禁等。When the identity of the object to be identified is successful, further operations, such as opening a gate, accessing, etc., may be performed.
步骤206、所述待识别对象的身份识别失败。Step 206: The identity recognition of the object to be identified fails.
在所述待识别对象的身份识别失败时,禁止待识别对象通过闸机、门禁等。进一步地,可以生成报警信息,并将报警信息发送给相关管理人员。When the identification of the object to be identified fails, the object to be identified is prohibited from passing through the gate, the door, and the like. Further, an alarm message can be generated and sent to the relevant manager.
本实施例中,在对待识别对象进行身份识别时,先识别待识别对象是否为活体,这样可以有效地抵御照片攻击,提高识别的安全性;当所述待识别对象为活体时,获取待识别对象的当前人脸图像,只有当获取的待识别对象的当前人脸图像中的人脸偏转角度小于预设角度阈值时,才进行图像的匹配检测,这样能够避免图像中的人脸偏转角度过大导致的识别错误,提高识别的准确率。In this embodiment, when the object to be identified is identified, it is first identified whether the object to be identified is a living body, which can effectively resist photo attacks and improve the security of the recognition; when the object to be identified is a living body, obtain the to-be-identified The current face image of the object is only matched when the face deflection angle in the current face image of the acquired object to be recognized is less than the preset angle threshold, so that the face deflection angle in the image can be avoided. Large identification errors lead to improved recognition accuracy.
上述实施例描述的方法,本实施例将做进一步的详细说明,如图3所示,本实施例的身份识别方法包括如下步骤:The method described in the foregoing embodiment is further described in detail in the embodiment. As shown in FIG. 3, the identity identification method in this embodiment includes the following steps:
步骤301、获取待识别对象的标识信息;Step 301: Obtain identification information of an object to be identified.
在执行步骤301之前,本实施例的身份识别装置还可以对待识别对象进行注册。具体注册过程可以包括:采集待识别对象的标识信息及注册人脸图像,将待识别对象的标识信息及注册人脸图像对应存储在数据库中,以及为待识别对象制成携带待识别对象的标识信息的近距离无线通讯(Near Field Communication,NFC)卡,待识别对象的标识信息可以是待识别对象的名字、编号、工号等。Before performing step 301, the identity recognition apparatus of this embodiment can also register the object to be identified. The specific registration process may include: collecting identification information of the object to be identified and a registered face image, storing the identification information of the object to be identified and the registered face image in a database, and forming an identifier for carrying the object to be identified for the object to be identified The Near Field Communication (NFC) card of the information, the identification information of the object to be identified may be the name, number, and work number of the object to be identified.
当待识别对象进入身份识别区时,身份识别装置可以获取待识别对象的标识信息,具体的获取方法可以是:从所述待识别对象的NFC卡中获取所述待识别对象的标识信息。例如,待识别对象进入身份识别区之后,可以将自身的NFC卡放置在身份识别装置的NFC感应模块上,NFC感应模块读取NFC卡中存储的所述待识别对象的标识信息,以此实现待识别对象的标识信息的获取。When the object to be identified enters the identification area, the identification device may obtain the identification information of the object to be identified, and the specific acquisition method may be: acquiring the identification information of the object to be identified from the NFC card of the object to be identified. For example, after the object to be identified enters the identification area, the NFC card of the NFC card can be placed on the NFC sensor module of the identity recognition device, and the NFC sensor module reads the identification information of the object to be identified stored in the NFC card. Acquisition of identification information of the object to be identified.
另外,身份识别装置可以提供信息输入窗口,待识别对象可以在信息输入窗口输入自身的标识信息,身份识别装置获取待识别对象输入的其自身的标识信息。如此一来,即使待识别对象的NFC卡遗忘或丢失,也可以继续进行身份识别。In addition, the identification device may provide an information input window, and the object to be identified may input its own identification information in the information input window, and the identity recognition device acquires its own identification information input by the object to be identified. In this way, the identification can be continued even if the NFC card of the object to be identified is forgotten or lost.
步骤302、检测数据库中是否存在待识别对象的标识信息,若存在,则执行步骤303,否则,执行步骤309; Step 302, detecting whether there is identification information of the object to be identified in the database, if yes, executing step 303, otherwise, performing step 309;
步骤303、根据待识别对象的标识信息从数据库中提取注册人脸图像;Step 303: Extract a registered face image from the database according to the identification information of the object to be identified.
步骤304、识别待识别对象是否为活体;Step 304: Identify whether the object to be identified is a living body;
具体在本实施例中,可以同时采用动作指令检测法、可见光检测法、热红外检测法进行检测识别,在以上三种检测方法的检测结果均为活体时,确定待识别对象为活体,以此提高活体识别的准确度。Specifically, in the embodiment, the motion instruction detection method, the visible light detection method, and the thermal infrared detection method can be simultaneously used for detecting and identifying. When the detection results of the above three detection methods are all living bodies, determining that the object to be identified is a living body, Improve the accuracy of living recognition.
步骤305、获取待识别对象的当前人脸图像;Step 305: Acquire a current face image of the object to be identified.
具体地,可以通过身份识别装置的摄像模块获取所述待识别对象的当前人脸图像,摄像模块例如可以为摄像头、相机、摄影机等,获取当前人脸图像之后,可以检测当前人脸图像中的人脸偏转角度,具体检测方法可如下:Specifically, the current face image of the object to be identified may be acquired by the camera module of the identity recognition device. The camera module may be, for example, a camera, a camera, a camera, etc., after acquiring the current face image, the camera image may be detected in the current face image. The angle of deflection of the face can be as follows:
定位当前人脸图像中的人脸的关键点;人脸的关键点一般为人脸上具有显著特征的点,例如,两个眼睛的内眼点、鼻尖点、两嘴角点。The key points of the face in the current face image are located; the key points of the face are generally points with significant features on the face of the person, for example, the inner eye point, the nose point, and the two corner points of the two eyes.
根据定位出的所述关键点的坐标,确定当前人脸图像中的人脸偏转角度。由于人脸的各个部位之间有着一定的比例关系,因此,提取到的正面人脸图像中的人脸的各个关键点之间具有特定的对应关系。根据定位出的所述关键点的坐标获取定位出的关键点之间的对应关系,将定位出的关键点之间的对应关系与正面人脸图像中的关键点的对应关系进行对比分析,可以确定出当前人脸图像中的人脸偏转角度。The face deflection angle in the current face image is determined according to the coordinates of the located key points. Since there is a certain proportional relationship between various parts of the human face, there is a specific correspondence between the key points of the face in the extracted frontal face image. Obtaining a correspondence between the located key points according to the coordinates of the key points that are located, and comparing the correspondence between the located key points and the key points in the frontal face image, The face deflection angle in the current face image is determined.
步骤306、判断当前人脸图像中的人脸偏转角度是否小于预设角度阈值,若小于,则执行步骤307,否则,执行步骤309; Step 306, determining whether the face deflection angle in the current face image is less than a preset angle threshold, if less, step 307 is performed, otherwise, step 309 is performed;
预设角度阈值可以在注册时,采用随机森林算法获取,具体的获取过程可参阅图4a及图4b,包括以下步骤:The preset angle threshold can be obtained by random forest algorithm when registering. The specific acquisition process can be seen in Figure 4a and Figure 4b, including the following steps:
步骤401、获取待识别对象的样本集;Step 401: Obtain a sample set of an object to be identified.
具体实现中,可以在待识别对象注册时,通过身份识别装置的摄像模块采集大量的待识别对象的人脸图像,并获取每张人脸图像中的人脸偏转角度,将待识别对象的一张人脸图像及对应的人脸偏转角度作为一个样本,大量的样本构成所述待识别对象的样本集。In a specific implementation, when the object to be identified is registered, a plurality of face images of the object to be identified are collected by the camera module of the identity recognition device, and a face deflection angle in each face image is obtained, and one of the objects to be identified is acquired. The face image and the corresponding face deflection angle are taken as one sample, and a large number of samples constitute a sample set of the object to be identified.
步骤402、对每个样本进行标记,生成每个样本的样本标签;Step 402: Mark each sample to generate a sample label of each sample;
具体的标记方法例如:检测每个样本中的人脸图像与所述注册人脸图像是否匹配;将匹配的人脸图像对应的样本标记为正样本,将不匹配的人脸图像对应的样本标记为负样本。正样本可以用数值“1”标识,负样本可以用数值“0”表示。The specific marking method is, for example, detecting whether the face image in each sample matches the registered face image; marking the sample corresponding to the matched face image as a positive sample, and marking the sample corresponding to the unmatched face image Is a negative sample. Positive samples can be identified by the value "1" and negative samples can be represented by the value "0".
步骤403、多次从样本集随机抽取预设数量的样本,构成多个训练集;Step 403: Randomly extract a preset number of samples from the sample set to form a plurality of training sets;
训练集的数量,以及训练集中包含的样本的数量,均可以根据实际需要设定。例如,可以根据身份识别装置的计算能力以及样本集中样本的数量等因素设定。假如每个训练集中包括M个样本,则任意一个训练集及训练集中的每个样本的样本标签可如表1所示:The number of training sets and the number of samples included in the training set can be set according to actual needs. For example, it can be set according to factors such as the computing power of the identification device and the number of samples in the sample set. If each training set includes M samples, the sample labels for each of the training sets and the training set can be as shown in Table 1:
样本序号Sample number 人脸图像Face image 人脸偏转角度Face deflection angle 样本标签Sample label
11 P1 P1 D1D1 00
22 P2P2 D2D2 11
... ... ... ...
MM PMPM DMDM 11
表1Table 1
步骤404、根据每个训练集,生成对应的决策树;Step 404: Generate a corresponding decision tree according to each training set.
以人脸偏转角度为分裂特征,根据每个训练集中包含的人脸偏转角度及对 应样本的样本标签,确定分裂条件,根据分裂条件生成对应的决策树。一个训练集,对应生成一棵决策树,例如图4b所示,当有N个训练集时,将生成N棵决策树。Taking the face deflection angle as a splitting feature, the splitting condition is determined according to the face deflection angle included in each training set and the sample label of the corresponding sample, and the corresponding decision tree is generated according to the splitting condition. A training set correspondingly generates a decision tree. For example, as shown in FIG. 4b, when there are N training sets, N decision trees are generated.
步骤401~404生成的多个决策树,即构成随机森林。The plurality of decision trees generated by steps 401 to 404 constitute a random forest.
步骤405、利用多个决策树对样本集中的每个样本进行预测,得到预测结果;Step 405: Perform prediction on each sample in the sample set by using multiple decision trees to obtain a prediction result.
对任意一个样本进行预测时,每个决策树都对该样本输出一个预测结果,N棵决策树将输出N个预测结果,预测结果或者为正(图像匹配成功),或者为负(图像不匹配),根据所有决策树对该样本的预测结果可以确定该样本为正样本的概率。例如生成了10棵决策树,9棵决策树对该样本的预测结果都为正,剩余一棵决策树对该样本的预测结果为负,则该样本为正样本的概率为0.9。When predicting any one sample, each decision tree outputs a prediction result for the sample, and N decision trees will output N prediction results, and the prediction result may be positive (image matching success) or negative (image mismatch) ), based on the prediction results of all the decision trees on the sample, the probability that the sample is a positive sample can be determined. For example, 10 decision trees are generated. The prediction results of the 9 decision trees are positive for the sample, and the remaining one decision tree is negative for the sample. The probability that the sample is a positive sample is 0.9.
利用生成的多个决策树对样本集中的所有样本进行预测,将得到每个样本为正样本的概率。Using the generated multiple decision trees to predict all samples in the sample set will give the probability that each sample is a positive sample.
步骤406、根据每个样本的预测结果确定预设角度阈值。Step 406: Determine a preset angle threshold according to the prediction result of each sample.
具体实现中,可以确定所述样本集中为正样本的概率最大的样本(即预测结果为正的次数最多的样本),将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。In a specific implementation, the sample with the highest probability of the positive sample in the sample set (ie, the sample with the most positive prediction result) may be determined, and the face deflection angle in the sample with the highest probability of the positive sample is taken as the pre-predetermined Set the angle threshold.
在某些实施方式中,可以重复步骤401~406,为不同的待识别对象确定不同的预设角度阈值,以进一步提高识别的准确性。当有新的对象进行注册时,也可以重复步骤401~406,为新的对象确定预设角度阈值。In some embodiments, steps 401-406 may be repeated to determine different preset angle thresholds for different objects to be identified to further improve the accuracy of the recognition. When a new object is registered, steps 401 to 406 may be repeated to determine a preset angle threshold for the new object.
实际上,步骤401~406即采用随机森林算法获取预设角度阈值。另外,还可以从样本集中抽取一定数量的样本构成测试集,在步骤404生成随机森林(多棵决策树)之后,可以利用测试集测试随机森林的预测准确度,若预测准确度不满足准确度要求,则可以重构训练集并生成随机森林,直至生成的随机森林满足准确度要求。In fact, steps 401-406 use a random forest algorithm to obtain a preset angle threshold. In addition, a certain number of samples may be extracted from the sample set to form a test set. After generating a random forest (multiple decision trees) in step 404, the test set may be used to test the prediction accuracy of the random forest, if the prediction accuracy does not satisfy the accuracy. If required, the training set can be reconstructed and a random forest generated until the generated random forest meets the accuracy requirements.
步骤307、检测待识别对象的当前人脸图像与注册人脸图像是否匹配,若匹配,则执行步骤308,否则,执行步骤309; Step 307, detecting whether the current face image of the object to be identified matches the registered face image, if yes, step 308 is performed, otherwise, step 309 is performed;
步骤308、待识别对象的身份识别成功;Step 308: The identity of the object to be identified is successfully identified.
在所述待识别对象的身份识别成功时,可以进行进一步的操作,例如打开闸机、门禁等,以允许待识别对象通过。When the identification of the object to be identified is successful, further operations, such as opening a gate, an access control, etc., may be performed to allow the object to be identified to pass.
步骤309、待识别对象的身份识别失败。Step 309: The identity of the object to be identified fails.
在所述待识别对象的身份识别失败时,禁止待识别对象通过闸机、门禁等,进一步地,可以生成报警信息,并将报警信息发送给相关管理人员。When the identification of the object to be identified fails, the object to be identified is prohibited from passing through the gate, the door, etc., and further, the alarm information may be generated, and the alarm information is sent to the relevant management personnel.
本实施例中,在对待识别对象进行身份识别时,可以识别待识别对象是否为活体,这样可以有效地抵御照片攻击,提高识别的安全性;当所述待识别对象为活体时,获取待识别对象的当前人脸图像,只有当获取的待识别对象的当前人脸图像中的人脸偏转角度小于预设角度阈值时,才进行图像的匹配检测,这样能够避免图像中的人脸偏转角度过大导致的识别错误,提高识别的准确率。在一个实施例中,还提供了一种计算机设备,该计算机设备的内部结构可如图1B或图1C所示,该计算机设备包括身份识别装置,身份识别装置中包括各个模块,每个模块可全部或部分通过软件、硬件或其组合来实现。In this embodiment, when the object to be identified is identified, it is possible to identify whether the object to be identified is a living body, which can effectively resist photo attacks and improve the security of the recognition; when the object to be identified is a living body, obtain the to-be-identified The current face image of the object is only matched when the face deflection angle in the current face image of the acquired object to be recognized is less than the preset angle threshold, so that the face deflection angle in the image can be avoided. Large identification errors lead to improved recognition accuracy. In an embodiment, a computer device is also provided. The internal structure of the computer device can be as shown in FIG. 1B or FIG. 1C. The computer device includes an identity recognition device, and each module includes each module. It is implemented in whole or in part by software, hardware or a combination thereof.
为了更好地实施以上方法,本申请还提供了一种身份识别装置,如图5所示,本实施例的装置包括:识别单元501、第一获取单元502、判断单元503、以及第一检测单元504,如下:In order to better implement the above method, the present application further provides an identity recognition apparatus. As shown in FIG. 5, the apparatus of this embodiment includes: an identification unit 501, a first acquisition unit 502, a determination unit 503, and a first detection. Unit 504 is as follows:
识别单元501,用于识别待识别对象是否为活体;The identifying unit 501 is configured to identify whether the object to be identified is a living body;
第一获取单元502,用于在所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;The first obtaining unit 502 is configured to acquire a current face image of the object to be identified when the object to be identified is a living body;
判断单元503,用于判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;a determining unit 503, configured to determine whether a face deflection angle in the current face image is less than a preset angle threshold;
第一检测单元504,用于在所述当前人脸图像中的人脸偏转角度小于预设角度阈值时,检测所述待识别对象的当前人脸图像与注册人脸图像是否匹配,若匹配,则所述待识别对象的身份识别成功。The first detecting unit 504 is configured to detect, when the face deflection angle in the current face image is less than a preset angle threshold, whether the current face image of the object to be identified matches the registered face image, and if yes, Then, the identity of the object to be identified is successful.
在一些实施例中,如图6所述,所述装置还包括:In some embodiments, as described in FIG. 6, the apparatus further includes:
第二获取单元505,用于获取所述待识别对象的样本集,所述样本集的每个样本中包括所述待识别对象的人脸图像及对应的人脸偏转角度;a second acquisition unit 505, configured to acquire a sample set of the object to be identified, where each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
构成单元507,用于多次从所述样本集中随机抽取预设数量的样本,构成 多个训练集;The constituting unit 507 is configured to randomly extract a preset number of samples from the sample set to form a plurality of training sets;
生成单元508,用于根据每个训练集,生成对应的决策树;a generating unit 508, configured to generate a corresponding decision tree according to each training set;
预测单元509,用于利用多个决策树对所述样本集中的每个样本进行预测,得到预测结果;a prediction unit 509, configured to predict, by using a plurality of decision trees, each sample in the sample set to obtain a prediction result;
确定单元510,用于根据每个样本的预测结果确定所述预设角度阈值。The determining unit 510 is configured to determine the preset angle threshold according to the prediction result of each sample.
在一些实施例中,如图6所述,所述装置还包括:In some embodiments, as described in FIG. 6, the apparatus further includes:
标记单元506,用于对每个样本进行标记,生成每个样本的样本标签。A marking unit 506 is configured to mark each sample to generate a sample label for each sample.
在一些实施例中,标记单元506具体用于:In some embodiments, the marking unit 506 is specifically configured to:
检测每个样本中的人脸图像与所述注册人脸图像是否匹配,将匹配的人脸图像对应的样本标记为正样本,将不匹配的人脸图像对应的样本标记为负样本。Detecting whether the face image in each sample matches the registered face image, marking the sample corresponding to the matched face image as a positive sample, and marking the sample corresponding to the unmatched face image as a negative sample.
在一些实施例中,确定单元510具体用于:In some embodiments, the determining unit 510 is specifically configured to:
确定所述样本集中为正样本的概率最大的样本,将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。Determining the sample with the highest probability of the positive sample as the positive sample, and using the face deflection angle in the sample with the highest probability of the positive sample as the preset angle threshold.
在一些实施例中,如图6所示,所述装置还包括:In some embodiments, as shown in FIG. 6, the apparatus further includes:
第二检测单元512,用于检测数据库中是否存在所述待识别对象的标识信息;The second detecting unit 512 is configured to detect whether the identifier information of the object to be identified exists in the database;
提取单元513,用于在所述数据库中存在所述待识别对象的标识信息时,根据所述待识别对象的标识信息从所述数据库中提取所述注册人脸图像。The extracting unit 513 is configured to extract the registered face image from the database according to the identification information of the object to be identified when the identification information of the object to be identified exists in the database.
在一些实施例中,如图6所示,所述装置还包括:In some embodiments, as shown in FIG. 6, the apparatus further includes:
第三获取单元511,用于获取所述待识别对象的近距离无线通讯NFC卡中携带的所述待识别对象的标识信息;或者获取所述待识别对象输入的所述待识别对象的标识信息。The third obtaining unit 511 is configured to acquire the identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified, or obtain the identification information of the object to be identified input by the object to be identified .
在一些实施例中,识别单元501具体用于:In some embodiments, the identifying unit 501 is specifically configured to:
采用动作指令检测法、可见光检测法和热红外检测法识别所述待识别对象是否为活体。The action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
需要说明的是,上述实施例提供的身份识别装置在进行身份识别时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功 能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的身份识别装置与身份识别方法属于同一构思,其具体实现过程详见方法实施例,此处不再赘述。It should be noted that, when the identity identification device provided by the foregoing embodiment is used for identification, only the division of each functional module is used for example. In an actual application, the function distribution may be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the identity recognition device and the identity identification method provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
本实施例的装置,通过识别单元识别待识别对象是否为活体,可以有效地抵御照片攻击,提高识别的安全性;当所述待识别对象为活体时,由第一获取单元获取待识别对象的当前人脸图像,只有当获取的待识别对象的当前人脸图像中的人脸偏转角度小于预设角度阈值时,检测单元才进行图像的匹配检测,这样能够避免图像中的人脸偏转角度过大导致的识别错误,提高识别的准确率。The device of the present embodiment can identify the object to be identified as a living body by the identification unit, and can effectively resist the photo attack and improve the security of the identification; when the object to be identified is a living body, the first acquiring unit acquires the object to be identified. The current face image is detected by the detecting unit only when the face deflection angle in the current face image of the object to be recognized is less than the preset angle threshold, so that the face deflection angle in the image can be avoided. Large identification errors lead to improved recognition accuracy.
相应的,本申请实施例还提供了一种身份识别装置,如图7所示,该装置可以包括射频(RF,Radio Frequency)电路601、包括有一个或一个以上计算机可读存储介质的存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(WiFi,Wireless Fidelity)模块607、包括有一个或者一个以上处理核心的处理器608、以及电源609等部件。本领域技术人员可以理解,图7中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Correspondingly, the embodiment of the present application further provides an identification device. As shown in FIG. 7, the device may include a radio frequency (RF) circuit 601, and a memory 602 including one or more computer readable storage media. The input unit 603, the display unit 604, the sensor 605, the audio circuit 606, the Wireless Fidelity (WiFi) module 607, the processor 608 including one or more processing cores, and the power supply 609 and the like. It will be understood by those skilled in the art that the device structure illustrated in FIG. 7 does not constitute a limitation to the device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器608处理;另外,将涉及上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short  Messaging Service)等。The RF circuit 601 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 608. In addition, the data related to the uplink is sent to the base station. . Generally, the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM), a transceiver, a coupler, and a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (CDMA). , Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据装置的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器608和输入单元603对存储器602的访问。The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by running software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the device (such as audio data, phone book, etc.). Moreover, memory 602 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 602 may also include a memory controller to provide access to memory 602 by processor 608 and input unit 603.
输入单元603可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元603可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元603还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 603 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, in one particular embodiment, input unit 603 can include a touch-sensitive surface as well as other input devices. Touch-sensitive surfaces, also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program. Alternatively, the touch sensitive surface may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 608 is provided and can receive commands from the processor 608 and execute them. In addition, touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 603 can also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元604可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显 示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图7中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。 Display unit 604 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 604 can include a display panel. Alternatively, the display panel can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation thereon or nearby, it is transmitted to the processor 608 to determine the type of the touch event, and then the processor 608 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel. Although in FIG. 7, the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
装置还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在装置移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The device may also include at least one type of sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or the backlight when the device moves to the ear. . As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路606、扬声器,传声器可提供用户与终端之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一装置,或者将音频数据输出至存储器602以便进一步处理。音频电路606还可能包括耳塞插孔,以提供外设耳机与装置的通信。The audio circuit 606, the speaker, and the microphone provide an audio interface between the user and the terminal. The audio circuit 606 can transmit the converted electrical signal of the audio data to the speaker, and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and then converted. The audio data is then processed by the audio data output processor 608, sent via RF circuitry 601 to, for example, another device, or the audio data is output to memory 602 for further processing. The audio circuit 606 may also include an earbud jack to provide communication of the peripheral earphones to the device.
WiFi属于短距离无线传输技术,装置通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块607,但是可以理解的是,其并不属于装置的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the device can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 607, which provides wireless broadband Internet access for users. Although FIG. 7 shows the WiFi module 607, it can be understood that it does not belong to the essential configuration of the device, and may be omitted as needed within the scope of not changing the essence of the application.
处理器608是装置的控制中心,利用各种接口和线路连接整个装置的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行终端的各种功能和处理数据,从而对装置进行整体监控。可选的,处理器608可包括一个或多个处理核心;优选的,处理 器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。 Processor 608 is the control center of the device, interconnecting various portions of the entire device using various interfaces and lines, executing or executing software programs and/or modules stored in memory 602, and invoking data stored in memory 602, executing The various functions of the terminal and processing data to monitor the device as a whole. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 608.
装置还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源609还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The device also includes a power source 609 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 608 through a power management system to manage functions such as charging, discharging, and power management through the power management system. The power supply 609 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,装置还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,装置中的处理器608会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器608来运行存储在存储器602中的应用程序,从而实现各种功能:Although not shown, the device may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the processor 608 in the device loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and is executed by the processor 608 to be stored in the memory. The application in 602 to implement various functions:
识别待识别对象是否为活体;Identify whether the object to be identified is a living body;
若所述待识别对象为活体,则获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified if the object to be identified is a living body;
判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
若小于所述预设角度阈值,则检测所述待识别对象的当前人脸图像与注册人脸图像是否匹配,若匹配,则所述待识别对象的身份识别成功。If the threshold value is smaller than the preset angle threshold, it is detected whether the current face image of the object to be identified matches the registered face image. If the image is matched, the identity of the object to be identified is successfully identified.
在一些实施例中,在识别待识别对象是否为活体之前,处理器608还用于执行以下步骤:In some embodiments, the processor 608 is further configured to perform the following steps before identifying whether the object to be identified is a living body:
获取所述待识别对象的样本集,所述样本集的每个样本中包括所述待识别对象的人脸图像及对应的人脸偏转角度;Obtaining a sample set of the object to be identified, where each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
多次从所述样本集中随机抽取预设数量的样本,构成多个训练集;Randomly extracting a preset number of samples from the sample set to form a plurality of training sets;
根据每个训练集,生成对应的决策树;Generating a corresponding decision tree according to each training set;
利用多个决策树对所述样本集中的每个样本进行预测,得到预测结果;Predicting each sample in the sample set using a plurality of decision trees to obtain a prediction result;
根据每个样本的预测结果确定所述预设角度阈值。The preset angle threshold is determined based on the prediction result of each sample.
在一些实施例中,在获取所述待识别对象的样本集之后,处理器608还用于执行以下步骤:In some embodiments, after acquiring the sample set of the object to be identified, the processor 608 is further configured to perform the following steps:
对每个样本进行标记,生成每个样本的样本标签。Each sample is labeled to generate a sample label for each sample.
在一些实施例中,在对每个样本进行标记,生成每个样本的样本标签时, 处理器608具体用于执行以下步骤:In some embodiments, when each sample is tagged to generate a sample tag for each sample, the processor 608 is specifically configured to perform the following steps:
检测每个样本中的人脸图像与所述注册人脸图像是否匹配;Detecting whether a face image in each sample matches the registered face image;
将匹配的人脸图像对应的样本标记为正样本,将不匹配的人脸图像对应的样本标记为负样本。The samples corresponding to the matched face images are marked as positive samples, and the samples corresponding to the unmatched face images are marked as negative samples.
在一些实施例中,在根据每个样本的预测结果确定所述预设角度阈值时,处理器608具体用于执行以下步骤:In some embodiments, when determining the preset angle threshold according to the prediction result of each sample, the processor 608 is specifically configured to perform the following steps:
确定所述样本集中为正样本的概率最大的样本,将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。Determining the sample with the highest probability of the positive sample as the positive sample, and using the face deflection angle in the sample with the highest probability of the positive sample as the preset angle threshold.
在一些实施例中,在识别待识别对象是否为活体之前,处理器608还用于执行以下步骤:In some embodiments, the processor 608 is further configured to perform the following steps before identifying whether the object to be identified is a living body:
检测数据库中是否存在所述待识别对象的标识信息;Detecting whether the identification information of the object to be identified exists in the database;
若所述数据库中存在所述待识别对象的标识信息,则根据所述待识别对象的标识信息从所述数据库中提取所述注册人脸图像。And if the identifier information of the object to be identified exists in the database, extracting the registered face image from the database according to the identifier information of the object to be identified.
在一些实施例中,在检测数据库中是否存在所述待识别对象的标识信息之前,处理器608还用于执行以下步骤:In some embodiments, before detecting whether the identification information of the object to be identified exists in the database, the processor 608 is further configured to perform the following steps:
获取所述待识别对象的近距离无线通讯NFC卡中携带的所述待识别对象的标识信息;或者Acquiring the identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified; or
获取所述待识别对象输入的所述待识别对象的标识信息。Obtaining identification information of the object to be identified input by the object to be identified.
在一些实施例中,在识别所述待识别对象是否为活体时,处理器608具体用于执行以下步骤:In some embodiments, when identifying whether the object to be identified is a living body, the processor 608 is specifically configured to perform the following steps:
采用动作指令检测法、可见光检测法和热红外检测法识别所述待识别对象是否为活体。The action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
本实施例的活体鉴别装置,在对待识别对象进行身份识别时,先识别待识别对象是否为活体,这样可以有效地抵御照片攻击,提高识别的安全性;当所述待识别对象为活体时,获取待识别对象的当前人脸图像,只有当获取的待识别对象的当前人脸图像中的人脸偏转角度小于预设角度阈值时,才进行图像的匹配检测,这样能够避免图像中的人脸偏转角度过大导致的识别错误,提高识别的准确率。The living body identification device of the embodiment first identifies whether the object to be identified is a living body when the object to be identified is identified, so that the photo attack can be effectively defended and the security of the identification is improved; when the object to be identified is a living body, Acquiring the current face image of the object to be identified, and performing matching detection of the image only when the face deflection angle in the current face image of the acquired object to be recognized is less than a preset angle threshold, thereby avoiding the face in the image The recognition error caused by the excessive deflection angle improves the accuracy of recognition.
本申请实施例还提供一种存储设备,所述存储设备存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一实施例中的视频转码方法,比如:识别待识别对象是否为活体;若所述待识别对象为活体,则获取所述待识别对象的当前人脸图像;判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;若小于所述预设角度阈值,则检测所述待识别对象的当前人脸图像与注册人脸图像是否匹配,若匹配,则所述待识别对象的身份识别成功。The embodiment of the present application further provides a storage device, where the storage device stores a computer program, and when the computer program runs on a computer, causes the computer to perform the video transcoding method in any of the above embodiments, such as: Determining whether the object to be identified is a living body; if the object to be identified is a living body, acquiring a current face image of the object to be identified; determining whether a face deflection angle in the current face image is less than a preset angle threshold; If the threshold value is smaller than the preset angle threshold, it is detected whether the current face image of the object to be identified matches the registered face image. If the image is matched, the identity of the object to be identified is successfully identified.
应该理解的是,虽然本申请各实施例中的各个步骤并不是必然按照步骤标号指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,各实施例中至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that the various steps in the various embodiments of the present application are not necessarily performed in the order indicated by the steps. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、 以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
需要说明的是,对本申请实施例的身份识别方法而言,本领域普通决策人员可以理解实现本申请实施例的身份识别方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如身份识别方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the identity identification method in the embodiment of the present application, an ordinary decision maker in the field can understand all or part of the process of implementing the identity identification method in the embodiment of the present application, which can be completed by using a computer program to control related hardware. The computer program may be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, and may include, for example, an identification method during execution. The flow of the embodiment. The storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
对本申请实施例的身份识别装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the identity recognition device of the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种身份识别方法、装置及存储设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The foregoing describes an identity identification method, apparatus, and storage device provided by the embodiments of the present application. The specific examples are used to describe the principles and implementation manners of the present application. The description of the above embodiments is only for helping. The method of the present application and its core idea are understood; at the same time, those skilled in the art, according to the idea of the present application, will have some changes in the specific implementation manner and application scope. In summary, the content of this specification should not be It is understood to be a limitation on the present application.

Claims (24)

  1. 一种身份识别方法,其特征在于,包括:An identification method, comprising:
    计算机设备识别待识别对象是否为活体;The computer device identifies whether the object to be identified is a living body;
    当计算机设备识别所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the computer device identifies that the object to be identified is a living body;
    判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
    当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
  2. 根据权利要求1所述的方法,其特征在于,在所述计算机设备识别待识别对象是否为活体之前,还包括:The method according to claim 1, wherein before the computer device identifies whether the object to be identified is a living body, the method further comprises:
    所述计算机设备获取所述待识别对象的样本集,所述样本集的每个样本中包括所述待识别对象的人脸图像及对应的人脸偏转角度;The computer device acquires a sample set of the object to be identified, and each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
    所述计算机设备多次从所述样本集中随机抽取预设数量的样本,构成多个训练集;The computer device randomly extracts a preset number of samples from the sample set to form a plurality of training sets;
    所述计算机设备根据每个训练集,生成对应的决策树;The computer device generates a corresponding decision tree according to each training set;
    所述计算机设备利用多个决策树对所述样本集中的每个样本进行预测,得到预测结果;The computer device uses a plurality of decision trees to predict each sample in the sample set to obtain a prediction result;
    所述计算机设备根据每个样本的预测结果确定所述预设角度阈值。The computer device determines the preset angle threshold based on a prediction result of each sample.
  3. 根据权利要求2所述的方法,其特征在于,在所述计算机设备获取所述待识别对象的样本集之后,还包括:The method according to claim 2, further comprising: after the computer device acquires the sample set of the object to be identified, further comprising:
    当所述计算机设备检测每个样本中的人脸图像与所述注册人脸图像匹配时,将匹配的人脸图像对应的样本标记为正样本;When the computer device detects that the face image in each sample matches the registered face image, marking the sample corresponding to the matched face image as a positive sample;
    当所述计算机设备检测每个样本中的人脸图像与所述注册人脸图像不匹配时,将不匹配的人脸图像对应的样本标记为负样本。When the computer device detects that the face image in each sample does not match the registered face image, the sample corresponding to the unmatched face image is marked as a negative sample.
  4. 根据权利要求3所述的方法,其特征在于,所述计算机设备根据每个样本的预测结果确定所述预设角度阈值,包括:The method according to claim 3, wherein the determining, by the computer device, the preset angle threshold according to a prediction result of each sample comprises:
    所述计算机设备确定所述样本集中为正样本的概率最大的样本,将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。The computer device determines a sample having the highest probability that the sample set is a positive sample, and uses a face deflection angle in the sample having the highest probability of the positive sample as the preset angle threshold.
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,在所述计算机设备识别待识别对象是否为活体之前,还包括:The method according to any one of claims 1 to 4, further comprising: before the computer device identifies whether the object to be identified is a living body, further comprising:
    当所述计算机设备检测数据库中存在所述待识别对象的标识信息时,根据所述待识别对象的标识信息从所述数据库中提取所述待识别对象的注册人脸图像。When the computer device detects that the identification information of the object to be identified exists in the database, the registered face image of the object to be identified is extracted from the database according to the identification information of the object to be identified.
  6. 根据权利要求5所述的方法,其特征在于,在当所述计算机设备检测数据库中存在所述待识别对象的标识信息之前,还包括:The method according to claim 5, further comprising: before the detecting, by the computer device, the identification information of the object to be identified in the database,
    所述计算机设备获取所述待识别对象的近距离无线通讯NFC卡中携带的所述待识别对象的标识信息。The computer device acquires the identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified.
  7. 根据权利要求5所述的方法,其特征在于,在当所述计算机设备检测数据库中存在所述待识别对象的标识信息之前,还包括:The method according to claim 5, further comprising: before the detecting, by the computer device, the identification information of the object to be identified in the database,
    所述计算机设备获取所述待识别对象输入的所述待识别对象的标识信息。The computer device acquires identification information of the object to be identified input by the object to be identified.
  8. 根据权利要求1所述的方法,其特征在于,所述计算机设备识别所述待识别对象是否为活体,包括:The method according to claim 1, wherein the computer device identifies whether the object to be identified is a living body, comprising:
    所述计算机设备采用动作指令检测法、可见光检测法和热红外检测法识别所述待识别对象是否为活体。The computer device uses an action command detection method, a visible light detection method, and a thermal infrared detection method to identify whether the object to be identified is a living body.
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下步骤:A computer device comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
    识别待识别对象是否为活体;Identify whether the object to be identified is a living body;
    当识别出所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the object to be identified is identified as a living body;
    判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
    当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
  10. 根据权利要求9所述的计算机设备,其特征在于,在识别待识别对象是否为活体之前,所述计算机可读指令还使得所述处理器执行如下步骤:The computer apparatus according to claim 9, wherein said computer readable instructions further cause said processor to perform the following steps before identifying whether the object to be identified is a living body:
    获取所述待识别对象的样本集,所述样本集的每个样本中包括所述待识别对象的人脸图像及对应的人脸偏转角度;Obtaining a sample set of the object to be identified, where each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
    多次从所述样本集中随机抽取预设数量的样本,构成多个训练集;Randomly extracting a preset number of samples from the sample set to form a plurality of training sets;
    根据每个训练集,生成对应的决策树;Generating a corresponding decision tree according to each training set;
    利用多个决策树对所述样本集中的每个样本进行预测,得到预测结果;Predicting each sample in the sample set using a plurality of decision trees to obtain a prediction result;
    根据每个样本的预测结果确定所述预设角度阈值。The preset angle threshold is determined based on the prediction result of each sample.
  11. 根据权利要求10所述的计算机设备,其特征在于,在获取所述待识别对象的样本集之后,所述计算机可读指令还使得所述处理器执行如下步骤:The computer apparatus according to claim 10, wherein, after acquiring the sample set of the object to be identified, the computer readable instructions further cause the processor to perform the following steps:
    当检测每个样本中的人脸图像与所述注册人脸图像匹配时,将匹配的人脸图像对应的样本标记为正样本;When detecting that the face image in each sample matches the registered face image, marking the sample corresponding to the matched face image as a positive sample;
    当检测每个样本中的人脸图像与所述注册人脸图像不匹配时,将不匹配的人脸图像对应的样本标记为负样本。When it is detected that the face image in each sample does not match the registered face image, the sample corresponding to the unmatched face image is marked as a negative sample.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述根据每个样本的预测结果确定所述预设角度阈值,包括:The computer device according to claim 11, wherein the determining the preset angle threshold according to the prediction result of each sample comprises:
    确定所述样本集中为正样本的概率最大的样本,将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。Determining the sample with the highest probability of the positive sample as the positive sample, and using the face deflection angle in the sample with the highest probability of the positive sample as the preset angle threshold.
  13. 根据权利要求9至12任意一项所述的计算机设备,其特征在于,在识别待识别对象是否为活体之前,所述计算机可读指令还使得所述处理器执行如下步骤:The computer device according to any one of claims 9 to 12, wherein the computer readable instructions further cause the processor to perform the following steps before identifying whether the object to be identified is a living body:
    当检测数据库中存在所述待识别对象的标识信息时,根据所述待识别对象的标识信息从所述数据库中提取所述待识别对象的注册人脸图像。When the identification information of the object to be identified exists in the detection database, the registered face image of the object to be identified is extracted from the database according to the identification information of the object to be identified.
  14. 根据权利要求13所述的计算机设备,其特征在于,在检测数据库中存在所述待识别对象的标识信息之前,所述计算机可读指令还使得所述处理器执行如下步骤:The computer apparatus according to claim 13, wherein said computer readable instructions further cause said processor to perform the following steps before detecting identification information of said object to be identified in said database:
    获取所述待识别对象的近距离无线通讯NFC卡中携带的所述待识别对象的标识信息。Obtaining identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified.
  15. 根据权利要求13所述的计算机设备,其特征在于,在检测数据库中存在所述待识别对象的标识信息之前,所述计算机可读指令还使得所述处理器执 行如下步骤:The computer apparatus according to claim 13, wherein said computer readable instructions further cause said processor to perform the following steps before detecting identification information of said object to be identified in said database:
    获取所述待识别对象输入的所述待识别对象的标识信息。Obtaining identification information of the object to be identified input by the object to be identified.
  16. 根据权利要求9所述的计算机设备,其特征在于,所述识别所述待识别对象是否为活体,包括:The computer device according to claim 9, wherein the identifying whether the object to be identified is a living body comprises:
    采用动作指令检测法、可见光检测法和热红外检测法识别所述待识别对象是否为活体。The action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
  17. 一个或多个存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
    识别待识别对象是否为活体;Identify whether the object to be identified is a living body;
    当识别出所述待识别对象为活体时,获取所述待识别对象的当前人脸图像;Obtaining a current face image of the object to be identified when the object to be identified is identified as a living body;
    判断所述当前人脸图像中的人脸偏转角度是否小于预设角度阈值;Determining whether a face deflection angle in the current face image is less than a preset angle threshold;
    当所述人脸偏转角度小于所述预设角度阈值,且所述待识别对象的当前人脸图像与注册人脸图像是否匹配时,所述待识别对象的身份识别成功。When the face deflection angle is smaller than the preset angle threshold, and the current face image of the object to be recognized matches the registered face image, the identity recognition of the object to be identified is successful.
  18. 根据权利要求17所述的存储介质,其特征在于,在识别待识别对象是否为活体之前,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to claim 17, wherein said computer readable instructions further cause said processor to perform the following steps before identifying whether the object to be identified is a living body:
    获取所述待识别对象的样本集,所述样本集的每个样本中包括所述待识别对象的人脸图像及对应的人脸偏转角度;Obtaining a sample set of the object to be identified, where each sample of the sample set includes a face image of the object to be identified and a corresponding face deflection angle;
    多次从所述样本集中随机抽取预设数量的样本,构成多个训练集;Randomly extracting a preset number of samples from the sample set to form a plurality of training sets;
    根据每个训练集,生成对应的决策树;Generating a corresponding decision tree according to each training set;
    利用多个决策树对所述样本集中的每个样本进行预测,得到预测结果;Predicting each sample in the sample set using a plurality of decision trees to obtain a prediction result;
    根据每个样本的预测结果确定所述预设角度阈值。The preset angle threshold is determined based on the prediction result of each sample.
  19. 根据权利要求18所述的存储介质,其特征在于,在获取所述待识别对象的样本集之后,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to claim 18, wherein, after acquiring the sample set of the object to be identified, the computer readable instructions further cause the processor to perform the following steps:
    当检测每个样本中的人脸图像与所述注册人脸图像匹配时,将匹配的人脸图像对应的样本标记为正样本;When detecting that the face image in each sample matches the registered face image, marking the sample corresponding to the matched face image as a positive sample;
    当检测每个样本中的人脸图像与所述注册人脸图像不匹配时,将不匹配的 人脸图像对应的样本标记为负样本。When it is detected that the face image in each sample does not match the registered face image, the sample corresponding to the unmatched face image is marked as a negative sample.
  20. 根据权利要求19所述的存储介质,其特征在于,所述根据每个样本的预测结果确定所述预设角度阈值,包括:The storage medium according to claim 19, wherein the determining the preset angle threshold according to the prediction result of each sample comprises:
    确定所述样本集中为正样本的概率最大的样本,将为正样本的概率最大的样本中的人脸偏转角度作为所述预设角度阈值。Determining the sample with the highest probability of the positive sample as the positive sample, and using the face deflection angle in the sample with the highest probability of the positive sample as the preset angle threshold.
  21. 根据权利要求17至20任意一项所述的存储介质,其特征在于,在识别待识别对象是否为活体之前,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to any one of claims 17 to 20, wherein the computer readable instructions further cause the processor to perform the following steps before identifying whether the object to be identified is a living body:
    当检测数据库中存在所述待识别对象的标识信息时,根据所述待识别对象的标识信息从所述数据库中提取所述待识别对象的注册人脸图像。When the identification information of the object to be identified exists in the detection database, the registered face image of the object to be identified is extracted from the database according to the identification information of the object to be identified.
  22. 根据权利要求21所述的存储介质,其特征在于,在检测数据库中是否存在所述待识别对象的标识信息之前,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to claim 21, wherein said computer readable instructions further cause said processor to perform the following steps before detecting whether said identification information of said object to be identified exists in said database:
    获取所述待识别对象的近距离无线通讯NFC卡中携带的所述待识别对象的标识信息。Obtaining identification information of the object to be identified carried in the short-range wireless communication NFC card of the object to be identified.
  23. 根据权利要求21所述的存储介质,其特征在于,在检测数据库中是否存在所述待识别对象的标识信息之前,所述计算机可读指令还使得所述处理器执行如下步骤:The storage medium according to claim 21, wherein said computer readable instructions further cause said processor to perform the following steps before detecting whether said identification information of said object to be identified exists in said database:
    获取所述待识别对象输入的所述待识别对象的标识信息。Obtaining identification information of the object to be identified input by the object to be identified.
  24. 根据权利要求17所述的存储介质,其特征在于,所述识别所述待识别对象是否为活体,包括:The storage medium according to claim 17, wherein the identifying whether the object to be identified is a living body comprises:
    采用动作指令检测法、可见光检测法和热红外检测法识别所述待识别对象是否为活体。The action command detection method, the visible light detection method, and the thermal infrared detection method are used to identify whether the object to be identified is a living body.
PCT/CN2018/113084 2017-11-20 2018-10-31 Identification method, computer device, and storage medium WO2019096008A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711159539.1 2017-11-20
CN201711159539.1A CN107944380B (en) 2017-11-20 2017-11-20 Identity recognition method and device and storage equipment

Publications (1)

Publication Number Publication Date
WO2019096008A1 true WO2019096008A1 (en) 2019-05-23

Family

ID=61930336

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113084 WO2019096008A1 (en) 2017-11-20 2018-10-31 Identification method, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN107944380B (en)
WO (1) WO2019096008A1 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223077A (en) * 2019-06-13 2019-09-10 深圳前海微众银行股份有限公司 Register method, device, equipment and the readable storage medium storing program for executing of face payment account
CN110751065A (en) * 2019-09-30 2020-02-04 北京旷视科技有限公司 Training data acquisition method and device
CN110955879A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Device control method, device, computer device and storage medium
CN111046810A (en) * 2019-12-17 2020-04-21 联想(北京)有限公司 Data processing method and processing device
CN111091388A (en) * 2020-02-18 2020-05-01 支付宝实验室(新加坡)有限公司 Living body detection method and device, face payment method and device, and electronic equipment
CN111325186A (en) * 2020-03-23 2020-06-23 上海依图网络科技有限公司 Video processing method, apparatus, medium, and system
CN111325185A (en) * 2020-03-20 2020-06-23 上海看看智能科技有限公司 Face fraud prevention method and system
CN111401315A (en) * 2020-04-10 2020-07-10 浙江大华技术股份有限公司 Face recognition method, recognition device and storage device based on video
CN111428576A (en) * 2020-03-02 2020-07-17 广州微盾科技股份有限公司 Characteristic information learning method, electronic device, and storage medium
CN111586427A (en) * 2020-04-30 2020-08-25 广州华多网络科技有限公司 Anchor identification method and device for live broadcast platform, electronic equipment and storage medium
CN111598053A (en) * 2020-06-17 2020-08-28 上海依图网络科技有限公司 Image data processing method, apparatus, medium, and system thereof
CN111680649A (en) * 2020-06-12 2020-09-18 杭州海康威视数字技术股份有限公司 Method and device for detecting persons present and data processing device
CN111914626A (en) * 2020-06-18 2020-11-10 北京迈格威科技有限公司 Living body identification/threshold value adjustment method, living body identification/threshold value adjustment device, electronic device, and storage medium
CN111967439A (en) * 2020-09-03 2020-11-20 Tcl通讯(宁波)有限公司 Sitting posture identification method and device, terminal equipment and storage medium
CN112016444A (en) * 2020-08-26 2020-12-01 北京掌中飞天科技股份有限公司 Method and device for processing face recognition technology based on Web front end
CN112115748A (en) * 2019-06-21 2020-12-22 腾讯科技(深圳)有限公司 Certificate image identification method, certificate image identification device, terminal and storage medium
CN112329624A (en) * 2020-11-05 2021-02-05 北京地平线信息技术有限公司 Living body detection method and apparatus, storage medium, and electronic device
CN112394421A (en) * 2019-08-15 2021-02-23 上海微波技术研究所(中国电子科技集团公司第五十研究所) Terahertz human body security inspection method, system, medium and equipment
CN112417925A (en) * 2019-08-21 2021-02-26 北京中关村科金技术有限公司 In-vivo detection method and device based on deep learning and storage medium
CN112711961A (en) * 2019-10-24 2021-04-27 浙江宇视科技有限公司 Information verification method and device, electronic equipment and machine-readable storage medium
CN112801013A (en) * 2021-02-08 2021-05-14 的卢技术有限公司 Face recognition method, system and device based on key point recognition and verification
CN113052208A (en) * 2021-03-10 2021-06-29 神华神东煤炭集团有限责任公司 Coal rock identification method based on vision, storage medium and electronic equipment
CN113591511A (en) * 2020-04-30 2021-11-02 顺丰科技有限公司 Concrete state identification method and device, electronic equipment and storage medium
CN113688698A (en) * 2021-08-09 2021-11-23 河南职业技术学院 Face correction recognition method and system based on artificial intelligence
CN112711961B (en) * 2019-10-24 2024-04-26 浙江宇视科技有限公司 Information verification method, apparatus, electronic device and machine-readable storage medium

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944380B (en) * 2017-11-20 2022-11-29 腾讯科技(深圳)有限公司 Identity recognition method and device and storage equipment
CN109543541B (en) * 2018-10-23 2024-03-08 合肥的卢深视科技有限公司 Living body detection method and device
CN109446981B (en) * 2018-10-25 2023-03-24 腾讯科技(深圳)有限公司 Face living body detection and identity authentication method and device
CN109829997A (en) * 2018-12-19 2019-05-31 新大陆数字技术股份有限公司 Staff attendance method and system
CN109741573B (en) * 2019-01-28 2023-05-05 武汉恩特拉信息技术有限公司 Human safety monitoring method, system and device based on face recognition
CN110127468B (en) * 2019-04-12 2023-02-07 深圳壹账通智能科技有限公司 Elevator control method, elevator control device, computer-readable storage medium and computer equipment
WO2020257968A1 (en) * 2019-06-24 2020-12-30 深圳市汇顶科技股份有限公司 Identity validity authentication device, identity validity authentication method and access control system
CN110335386B (en) * 2019-06-25 2021-08-03 腾讯科技(深圳)有限公司 Identity authentication method, device, terminal and storage medium
CN111222784A (en) * 2020-01-03 2020-06-02 重庆特斯联智慧科技股份有限公司 Security monitoring method and system based on population big data
CN111274940A (en) * 2020-01-19 2020-06-12 厦门中控智慧信息技术有限公司 Face recognition method, device, equipment and storage medium
CN113139407A (en) * 2020-01-20 2021-07-20 深圳市道控技术有限公司 Face recognition control method, device and storage medium
CN111428679B (en) * 2020-04-02 2023-09-01 苏州杰锐思智能科技股份有限公司 Image identification method, device and equipment
CN111723887A (en) * 2020-07-03 2020-09-29 深圳市有方科技股份有限公司 Service processing method and device based on NFC technology and computer equipment
CN112215064A (en) * 2020-09-03 2021-01-12 广州市标准化研究院 Face recognition method and system for public safety precaution
CN112580434B (en) * 2020-11-25 2024-03-15 奥比中光科技集团股份有限公司 Face false detection optimization method and system based on depth camera and face detection equipment
CN112766086A (en) * 2021-01-04 2021-05-07 深圳阜时科技有限公司 Identification template registration method and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655029B2 (en) * 2012-04-10 2014-02-18 Seiko Epson Corporation Hash-based face recognition system
CN103593598A (en) * 2013-11-25 2014-02-19 上海骏聿数码科技有限公司 User online authentication method and system based on living body detection and face recognition
CN106339665A (en) * 2016-08-11 2017-01-18 电子科技大学 Fast face detection method
CN107944380A (en) * 2017-11-20 2018-04-20 腾讯科技(深圳)有限公司 Personal identification method, device and storage device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070098229A1 (en) * 2005-10-27 2007-05-03 Quen-Zong Wu Method and device for human face detection and recognition used in a preset environment
CN111898108A (en) * 2014-09-03 2020-11-06 创新先进技术有限公司 Identity authentication method and device, terminal and server
CN106203400A (en) * 2016-07-29 2016-12-07 广州国信达计算机网络通讯有限公司 A kind of face identification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655029B2 (en) * 2012-04-10 2014-02-18 Seiko Epson Corporation Hash-based face recognition system
CN103593598A (en) * 2013-11-25 2014-02-19 上海骏聿数码科技有限公司 User online authentication method and system based on living body detection and face recognition
CN106339665A (en) * 2016-08-11 2017-01-18 电子科技大学 Fast face detection method
CN107944380A (en) * 2017-11-20 2018-04-20 腾讯科技(深圳)有限公司 Personal identification method, device and storage device

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223077A (en) * 2019-06-13 2019-09-10 深圳前海微众银行股份有限公司 Register method, device, equipment and the readable storage medium storing program for executing of face payment account
CN112115748B (en) * 2019-06-21 2023-08-25 腾讯科技(深圳)有限公司 Certificate image recognition method, device, terminal and storage medium
CN112115748A (en) * 2019-06-21 2020-12-22 腾讯科技(深圳)有限公司 Certificate image identification method, certificate image identification device, terminal and storage medium
CN112394421A (en) * 2019-08-15 2021-02-23 上海微波技术研究所(中国电子科技集团公司第五十研究所) Terahertz human body security inspection method, system, medium and equipment
CN112417925A (en) * 2019-08-21 2021-02-26 北京中关村科金技术有限公司 In-vivo detection method and device based on deep learning and storage medium
CN110751065A (en) * 2019-09-30 2020-02-04 北京旷视科技有限公司 Training data acquisition method and device
CN110751065B (en) * 2019-09-30 2023-04-28 北京旷视科技有限公司 Training data acquisition method and device
CN112711961B (en) * 2019-10-24 2024-04-26 浙江宇视科技有限公司 Information verification method, apparatus, electronic device and machine-readable storage medium
CN112711961A (en) * 2019-10-24 2021-04-27 浙江宇视科技有限公司 Information verification method and device, electronic equipment and machine-readable storage medium
CN110955879A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Device control method, device, computer device and storage medium
CN111046810A (en) * 2019-12-17 2020-04-21 联想(北京)有限公司 Data processing method and processing device
CN111091388B (en) * 2020-02-18 2024-02-09 支付宝实验室(新加坡)有限公司 Living body detection method and device, face payment method and device and electronic equipment
CN111091388A (en) * 2020-02-18 2020-05-01 支付宝实验室(新加坡)有限公司 Living body detection method and device, face payment method and device, and electronic equipment
CN111428576A (en) * 2020-03-02 2020-07-17 广州微盾科技股份有限公司 Characteristic information learning method, electronic device, and storage medium
CN111428576B (en) * 2020-03-02 2024-04-26 广州微盾科技股份有限公司 Feature information learning method, electronic device and storage medium
CN111325185B (en) * 2020-03-20 2023-06-23 上海看看智能科技有限公司 Face fraud prevention method and system
CN111325185A (en) * 2020-03-20 2020-06-23 上海看看智能科技有限公司 Face fraud prevention method and system
CN111325186B (en) * 2020-03-23 2023-05-05 上海依图网络科技有限公司 Video processing method, device, medium and system
CN111325186A (en) * 2020-03-23 2020-06-23 上海依图网络科技有限公司 Video processing method, apparatus, medium, and system
CN111401315A (en) * 2020-04-10 2020-07-10 浙江大华技术股份有限公司 Face recognition method, recognition device and storage device based on video
CN111401315B (en) * 2020-04-10 2023-08-22 浙江大华技术股份有限公司 Face recognition method based on video, recognition device and storage device
CN111586427A (en) * 2020-04-30 2020-08-25 广州华多网络科技有限公司 Anchor identification method and device for live broadcast platform, electronic equipment and storage medium
CN113591511A (en) * 2020-04-30 2021-11-02 顺丰科技有限公司 Concrete state identification method and device, electronic equipment and storage medium
CN111680649B (en) * 2020-06-12 2023-10-24 杭州海康威视数字技术股份有限公司 Method and device for detecting presence personnel and data processing device
CN111680649A (en) * 2020-06-12 2020-09-18 杭州海康威视数字技术股份有限公司 Method and device for detecting persons present and data processing device
CN111598053B (en) * 2020-06-17 2024-02-27 上海依图网络科技有限公司 Image data processing method and device, medium and system thereof
CN111598053A (en) * 2020-06-17 2020-08-28 上海依图网络科技有限公司 Image data processing method, apparatus, medium, and system thereof
CN111914626A (en) * 2020-06-18 2020-11-10 北京迈格威科技有限公司 Living body identification/threshold value adjustment method, living body identification/threshold value adjustment device, electronic device, and storage medium
CN112016444A (en) * 2020-08-26 2020-12-01 北京掌中飞天科技股份有限公司 Method and device for processing face recognition technology based on Web front end
CN111967439A (en) * 2020-09-03 2020-11-20 Tcl通讯(宁波)有限公司 Sitting posture identification method and device, terminal equipment and storage medium
CN112329624A (en) * 2020-11-05 2021-02-05 北京地平线信息技术有限公司 Living body detection method and apparatus, storage medium, and electronic device
CN112801013A (en) * 2021-02-08 2021-05-14 的卢技术有限公司 Face recognition method, system and device based on key point recognition and verification
CN112801013B (en) * 2021-02-08 2024-04-09 的卢技术有限公司 Face recognition method, system and device based on key point recognition verification
CN113052208A (en) * 2021-03-10 2021-06-29 神华神东煤炭集团有限责任公司 Coal rock identification method based on vision, storage medium and electronic equipment
CN113052208B (en) * 2021-03-10 2023-08-25 神华神东煤炭集团有限责任公司 Vision-based coal rock identification method, storage medium and electronic equipment
CN113688698A (en) * 2021-08-09 2021-11-23 河南职业技术学院 Face correction recognition method and system based on artificial intelligence
CN113688698B (en) * 2021-08-09 2022-09-16 河南职业技术学院 Face correction recognition method and system based on artificial intelligence

Also Published As

Publication number Publication date
CN107944380A (en) 2018-04-20
CN107944380B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
WO2019096008A1 (en) Identification method, computer device, and storage medium
US10169639B2 (en) Method for fingerprint template update and terminal device
US11290447B2 (en) Face verification method and device
WO2018121428A1 (en) Living body detection method, apparatus, and storage medium
US9443155B2 (en) Systems and methods for real human face recognition
WO2017118437A1 (en) Service processing method, device, and system
KR102482850B1 (en) Electronic device and method for providing handwriting calibration function thereof
EP2879095A1 (en) Method, apparatus and terminal device for image processing
CN104852885B (en) Method, device and system for verifying verification code
WO2015058616A1 (en) Recognition method and device for malicious website
WO2019052316A1 (en) Image processing method and apparatus, computer-readable storage medium and mobile terminal
WO2014206203A1 (en) System and method for detecting unauthorized login webpage
WO2019052433A1 (en) Image processing method, mobile terminal and computer-readable storage medium
WO2018133874A1 (en) Method and device for sending warning message
CN106527949B (en) A kind of unlocked by fingerprint method, apparatus and terminal
CN108475304B (en) Method and device for associating application program and biological characteristics and mobile terminal
US20150365515A1 (en) Method of triggering authentication mode of an electronic device
WO2019154184A1 (en) Biological feature recognition method and mobile terminal
CN109074171B (en) Input method and electronic equipment
WO2016173453A1 (en) Living body identification method, information generation method and terminal
WO2018161540A1 (en) Fingerprint registration method and related product
WO2018059328A1 (en) Terminal control method, terminal, and data storage medium
WO2019218843A1 (en) Key configuration method and device, and mobile terminal and storage medium
WO2017088434A1 (en) Human face model matrix training method and apparatus, and storage medium
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18879652

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18879652

Country of ref document: EP

Kind code of ref document: A1