CN108875557B - Method, apparatus, system and computer storage medium for testimony of a witness verification - Google Patents

Method, apparatus, system and computer storage medium for testimony of a witness verification Download PDF

Info

Publication number
CN108875557B
CN108875557B CN201810381539.4A CN201810381539A CN108875557B CN 108875557 B CN108875557 B CN 108875557B CN 201810381539 A CN201810381539 A CN 201810381539A CN 108875557 B CN108875557 B CN 108875557B
Authority
CN
China
Prior art keywords
face image
working mode
self
image
face
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810381539.4A
Other languages
Chinese (zh)
Other versions
CN108875557A (en
Inventor
滕飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kuangshi Technology Co Ltd
Original Assignee
Beijing Kuangshi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuangshi Technology Co Ltd filed Critical Beijing Kuangshi Technology Co Ltd
Priority to CN201810381539.4A priority Critical patent/CN108875557B/en
Publication of CN108875557A publication Critical patent/CN108875557A/en
Application granted granted Critical
Publication of CN108875557B publication Critical patent/CN108875557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Collating Specific Patterns (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a method, a device and a system for people authentication verification and a computer storage medium. The method comprises the following steps: determining a current working mode, wherein the current working mode is a self-service mode or a non-self-service mode; acquiring a face image to be verified; obtaining an upright face image of the face image according to the current working mode; and displaying the upright human face image. Therefore, in the embodiment of the invention, the working mode can be determined firstly, and then different processing is performed on the face image according to different working modes, so that the face image displayed on the screen is an erect image consistent with the compared person, therefore, a user can orient the display screen to the compared person or the oriented worker according to needs, and the oriented compared person or the oriented worker can view the erect face image in real time. Compared with a double-screen device, the hardware cost can be reduced, and the power consumption can be reduced.

Description

Method, apparatus, system and computer storage medium for testimony of a witness verification
Technical Field
The present invention relates to the field of image processing, and more particularly, to a method, apparatus, system, and computer storage medium for human authentication.
Background
With the improvement of the accuracy of the face recognition algorithm and the maturity of terminal hardware and systems, the face recognition technology is widely applied to various industries. For example, in the security industry, a human identity card verification all-in-one machine is a ground embodiment of a face recognition technology. At present, the people's card checking all-in-one machine is used for checking whether a field face and a face on an identity card are the same person, and the use scene includes but is not limited to identity checking of a public institution, hotel check-in, internet bar check-in and the like.
However, in the current people verification system, the image acquisition device and the front-end screen are both oriented towards the compared person, and at this time, the staff cannot check the comparison result in time; if the front-end screen facing the comparison person and the display screen facing the staff are installed at the same time, the hardware cost of the double-screen equipment is greatly increased, and the power consumption is obviously increased.
Disclosure of Invention
The invention provides a method, a device and a system for people certification verification and a computer storage medium, wherein a screen can face a compared person or a worker according to needs, and compared with a double screen, the cost can be reduced, and the power consumption can be reduced.
According to an aspect of the present invention, there is provided a method for human authentication verification, the method comprising:
determining a current working mode, wherein the current working mode is a self-service mode or a non-self-service mode;
acquiring a face image to be verified;
obtaining an upright face image of the face image according to the current working mode;
and displaying the upright human face image.
In an implementation manner of the present invention, the determining the current operating mode includes:
if the user selects the working mode, determining the working mode selected by the user as the current working mode;
if the user does not select the working mode, judging whether the last working mode is stored;
if the last working mode is stored, determining that the current working mode is the last working mode,
if the last working mode is not stored, determining that the current working mode is a self-service mode;
the self-service mode represents that the image acquisition device and the display screen face the same direction, and the non-self-service mode represents that the image acquisition device and the display screen face the opposite direction.
In an implementation manner of the present invention, the acquiring a face image to be verified includes:
acquiring video stream data acquired by an image acquisition device;
and determining the face image in the video stream data according to a face detection model.
In an implementation manner of the present invention, the obtaining an upright face image of the face image according to the current working mode includes:
carrying out mirror symmetry processing on the face image to obtain a face image after mirror symmetry;
if the current working mode is a self-service mode, determining the face image after mirror symmetry as the upright face image;
and if the current working mode is a non-self-service mode, rotating the face image after mirror symmetry by 180 degrees and determining the face image as the upright face image.
In one implementation of the invention, the mirror symmetry processing includes: and rotating the face image by 180 degrees by taking the face-out direction of the face image as a rotating shaft.
In one implementation manner of the present invention, before displaying the upright face image, the method further includes:
and judging the quality of the face image, marking the upright face image according to the quality judgment result and displaying the upright face image on a display screen.
According to another aspect of the present invention there is provided an apparatus for human authentication verification for carrying out the steps of the method of the preceding aspect or embodiments, the apparatus comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a current working mode, and the current working mode is a self-service mode or a non-self-service mode;
the acquisition module is used for acquiring a face image to be verified;
the processing module is used for obtaining an upright face image of the face image according to the current working mode;
and the display module is used for displaying the upright human face image.
According to a further aspect of the present invention, there is provided a system for human authentication comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implementing the steps of the method for human authentication as described in the preceding aspect and examples when executing the computer program.
According to a further aspect of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method for testimony verification as set forth in the preceding aspects and examples.
Therefore, in the embodiment of the invention, the working mode can be determined firstly to determine the relative orientation of the image acquisition device and the display screen, and then different processing is performed on the face image according to different working modes, so that the face image displayed on the screen is an erect image consistent with the compared person, therefore, a user can orient the display screen towards the compared person or the oriented worker according to needs, and the oriented compared person or the oriented worker can view the erect face image in real time. In addition, compared with a double-screen device, the embodiment of the invention can greatly reduce the hardware cost, reduce the power consumption and achieve the purpose of energy saving.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
FIG. 1 is a schematic block diagram of an electronic device of an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for human verification of an embodiment of the present invention;
FIG. 3 is another schematic flow chart diagram of a method for human verification of an embodiment of the present invention;
FIG. 4 is a schematic block diagram of an apparatus for human authentication verification in accordance with an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a system for human verification of an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
The embodiment of the present invention can be applied to an electronic device, and fig. 1 is a schematic block diagram of the electronic device according to the embodiment of the present invention. The electronic device 10 shown in FIG. 1 includes one or more processors 102, one or more memory devices 104, an input device 106, an output device 108, an image sensor 110, and one or more non-image sensors 114, which are interconnected via a bus system 112 and/or otherwise. It should be noted that the components and configuration of the electronic device 10 shown in FIG. 1 are exemplary only, and not limiting, and that the electronic device may have other components and configurations as desired.
The processor 102 may include a Central Processing Unit (CPU) 1021 and a Graphics Processing Unit (GPU) 1022 or other forms of Processing units having data Processing capability and/or Instruction execution capability, such as a Field-Programmable Gate Array (FPGA) or an Advanced Reduced Instruction Set Machine (Reduced Instruction Set Computer) Machine (ARM), and the like, and the processor 102 may control other components in the electronic device 10 to perform desired functions.
The storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory 1041 and/or non-volatile memory 1042. The volatile Memory 1041 may include, for example, a Random Access Memory (RAM), a cache Memory (cache), and/or the like. The non-volatile Memory 1042 may include, for example, a Read-Only Memory (ROM), a hard disk, a flash Memory, and the like. One or more computer program instructions may be stored on the computer-readable storage medium and executed by processor 102 to implement various desired functions. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
The output device 108 may output various information (e.g., images or sounds) to an external (e.g., user), and may include one or more of a display, a speaker, and the like.
The image sensor 110 may take images (e.g., photographs, videos, etc.) desired by the user and store the taken images in the storage device 104 for use by other components.
It should be noted that the components and structure of the electronic device 10 shown in fig. 1 are merely exemplary, and although the electronic device 10 shown in fig. 1 includes a plurality of different devices, some of the devices may not be necessary, some of the devices may be more numerous, and the like, as desired, and the invention is not limited thereto.
FIG. 2 is a schematic flow chart of a method for human verification of an embodiment of the present invention. The method illustrated in FIG. 2 may be performed by the electronic device 10 illustrated in FIG. 1, and in particular by the processor 102. The method shown in fig. 2 may include:
s110, determining a current working mode, wherein the current working mode is a self-service mode or a non-self-service mode;
s120, obtaining a face image to be verified;
s130, obtaining an upright human face image of the human face image according to the current working mode;
and S140, displaying the upright human face image.
The executing device of the method may be a human authentication device, and accordingly, the current working module determined in S110 is the current working module of the human authentication device. Illustratively, the human authentication apparatus may include an image capture device and a display screen. In S120, a face image to be verified acquired by the image acquisition device may be acquired; the upright face image may be displayed on the display screen in S140.
It is understood that the image capture device may be a camera device, such as a camera, which may be one of the image sensors 110 shown in fig. 1. It is understood that the screen may be one of the output devices 108 shown in FIG. 1.
In the embodiment of the invention, the image acquisition device can rotate relative to the screen. By rotating the image capturing device, the image capturing device and the screen may face in the same direction, or may face in opposite directions, or both may face at a certain angle, which is not limited in the present invention. In the scene of people's evidence verification, generally divide into the autonomous mode of user's own operation and the non-autonomous mode of staff's operation so the orientation that needs display screen and image acquisition device can be adjusted according to the mode of operation. Therefore, the image acquisition device and the screen can be in the same direction or opposite directions in the embodiment of the invention.
In the embodiment of the invention, the working mode can be a self-service mode or a non-self-service mode. The self-service mode represents that the image acquisition device faces the same direction with the screen, and the non-self-service mode represents that the image acquisition device faces the opposite direction with the screen.
In the embodiment of the present invention, as an implementation manner, the image capturing device and the screen face in the same direction, specifically, both the image capturing device and the screen face the compared person, that is, the screen is a front-end screen. At the moment, the compared person can see the video stream data acquired by the image acquisition device in real time, so that the compared person can adjust the position, posture and the like of the compared person in real time, a proper face image can be acquired as soon as possible, the use experience of the compared person can be improved, the authentication verification time is shortened, and the processing efficiency is improved. Therefore, when the card is in the self-service mode, the compared person can check the comparison result by himself, and the card can be also called as the self-service card swiping mode. As another implementation, the image capturing device faces the opposite direction to the screen, specifically, the image capturing device faces the compared person, and the screen faces the staff. At the moment, the staff can check the video stream data collected by the image collecting device on the screen in real time, and further check the comparison result of the testimony verification in real time. Therefore, when the comparison mode is the non-self-help mode, the compared person cannot check the comparison result by himself, and therefore the comparison mode can also be called the non-self-help card swiping mode. It is understood that the user can switch between the two implementations described above by manually rotating the image capture device.
Optionally, S110 may include: as shown in fig. 3, if the user selects the operation mode, the operation mode selected by the user is determined as the current operation mode. Exemplarily, if the user does not select the working mode, whether the last working mode is stored is judged; and if the last working mode is stored, determining that the current working mode is the last working mode, and if the last working mode is not stored, determining that the current working mode is a self-service mode.
Before the process of verifying the testimony of the people is carried out, the user can manually rotate the image acquisition device, and then the user can select a working mode according to the orientation relation between the rotated image acquisition device and the screen. If the image acquisition device and the screen face the same direction, the user can select a self-service mode; if the image acquisition device and the screen face opposite directions, the user can select a non-self-service mode. For example, the user may select the operating mode to be the self-service mode or the non-self-service mode in a particular area of a particular page (e.g., a settings interface).
If the user does not rotate the image acquisition device and does not select the working mode before the human authentication process. It may be determined whether there is a stored last operating mode. And if the last working mode is stored, determining that the current working mode is the last working mode. It will be appreciated that in practical application scenarios, the device or system for human verification is typically long-running and may be long-running in a certain mode of operation due to the use habits of the personnel. Each stored operating mode can therefore be stored internally in the software and on the next use the stored last operating mode can be used by default. Therefore, the repeated determination of the working mode in each use can be avoided, the processing time is shortened, and the efficiency is improved.
Further, if the last working mode is not stored, it may be determined that the current working mode is a default working mode, i.e., a self-service mode.
Specifically, S110 may include: when the personal authentication verification equipment is used for the first time, determining that the current working mode is a self-service mode; and when the current working mode is not used for the first time, determining the current working mode as the last working mode. Unless the user selects the operational mode.
Exemplarily, S120 may include: acquiring video stream data acquired by the image acquisition device; and determining the face image in the video stream data according to a face detection model.
Video stream data acquired by the image acquisition device can be acquired. And then judging whether a human face exists in each frame of the video stream data through a human face detection model. Illustratively, the presence or absence of a face may be detected on a frame-by-frame basis. As an implementation manner, if it is determined through the face detection that no face exists in any frame, the video stream data acquired by the image acquisition device may be returned to be re-acquired, and the face detection may be performed on the re-acquired video stream data. As another implementation, if it is determined through face detection that a face exists in a certain frame, it may be determined that the frame of video stream data is a face image in S110. It is understood that 1 or more faces may exist in the face image in S110, which is not limited in the present invention.
Illustratively, S130 may include: carrying out mirror symmetry processing on the face image to obtain a face image after mirror symmetry;
if the current working mode is a self-service mode, determining the face image after mirror symmetry as the upright face image;
and if the current working mode is a non-self-service mode, rotating the face image after mirror symmetry by 180 degrees and determining the face image as the upright face image.
When the image acquisition device acquires a face image, the principle of image imaging is similar to that of convex lens imaging, and the obtained image is inverted compared with the actual image. Taking a face image as an example, the imaged eyes would be located below, while the mouth and nose would be located above. If the inverted images after imaging are displayed among each other, the visual experience is very bad due to the fact that the inverted images are not consistent with the observation visual angles of ordinary people. Therefore, after the image acquired by the image acquisition device is acquired, the face image is subjected to mirror symmetry processing to obtain a mirror-symmetric face image, which is also called a mirror-symmetric face image.
Specifically, the mirror symmetry processing may be to rotate the face image by 180 degrees around its out-of-plane direction. Specifically, assuming that the face-out direction of the face image is the z-axis (or-z-axis) direction, the mirror-symmetric image can be obtained by rotating the face image around the rotation axis by 180 degrees with the z-axis (or-z-axis) as the rotation axis.
Illustratively, the mirror-symmetric face image can be obtained by matrix transformation as follows:
Figure BDA0001641150310000071
as a simplified form, the matrix transformation can also be expressed as:
Figure BDA0001641150310000072
wherein (x ', y ', z ') represents coordinate values in the mirror-symmetric image, and (x, y, z) represents coordinate values in the face image. θ denotes a rotation angle of the matrix transformation, and in this example, θ is 180 °.
Further, the upright face image can be obtained based on the mirror symmetry face image according to the current working mode.
As an implementation manner, if the current working mode is the self-service mode: at this time, the processing can be performed according to that the video stream data is upright, that is, the mirror-symmetric face image is an upright image, and at this time, the mirror-symmetric face image can be determined as an upright face image.
As another implementation manner, if the current working mode is the non-self-service mode: at this time, the video stream data needs to be processed in an inverted manner, that is, the mirror-symmetric face image is an inverted image, and at this time, the mirror-symmetric face image can be rotated by 180 degrees to obtain an upright face image.
For example, if the current working mode is a non-self-help mode, the mirror-symmetric face image may be rotated by 180 degrees around the out-of-plane direction thereof, so as to obtain an upright face image.
Exemplarily, before S140, the method may further include: and judging the quality of the face image, and marking according to the quality judgment result.
Specifically, it may be determined whether the face in the face image of S120 meets the required face quality requirement. It can be understood that if more than one face exists in the face image of S120, the face closest to the image acquisition device may be used as the face image of the compared person, or the face with the largest area may be used as the face image of the compared person according to the size of the detected face.
Specifically, the method may include: and if the judgment result determines that the face image reaches the preset quality threshold, performing first marking on the face image. And if the judgment result determines that the face image does not reach the preset quality threshold value, performing second marking on the face image.
For example, when performing the quality determination, the image quality of the face, such as horizontal direction angle, vertical direction angle, rotation angle, blur degree, brightness, etc., may be determined based on the face image, and the obtained various image qualities may be compared with corresponding preset quality thresholds. If the quality of each image meets the corresponding preset quality threshold, the face image can be determined to reach the preset quality threshold. Otherwise, if the quality of a certain image does not meet the corresponding preset quality threshold, the face image can be determined not to meet the preset quality threshold. For example, if the rotation angle of the face image is greater than the preset rotation angle threshold, it is determined that the face image is not a front face and does not meet the quality requirement. For another example, if the face image is too blurred and cannot meet the definition quality threshold, it indicates that the face image is not clear enough and cannot meet the quality requirement.
That is, when the quality of the face image reaches the quality threshold, it is first labeled. And when the quality of the face image does not reach the quality threshold value, carrying out second marking on the face image. Alternatively, the first mark may be: and marking a face frame of the face image as a first color. The second mark may be: and marking a face frame of the face image as a second color, wherein the second color is different from the first color. For example, the first color is blue and the second color is red. The invention is not limited in this regard.
After the face is detected by the face detection model, a face frame can be adopted to mark out the detected face area; then, quality judgment is carried out, and if the preset quality threshold is reached, the face frame is in a first color; and if the preset quality threshold value is not reached, the face frame is in a second color.
Illustratively, the upright face image obtained in S130 may also be labeled according to the result of the quality judgment. The marking of the face frame with the first color indicates that the face image meets the preset quality threshold, and the marking of the face frame with the second color indicates that the face image does not meet the preset quality threshold.
In this embodiment of the present invention, S140 may include: the upright face image is displayed on a display screen, and optionally, the upright face image with the mark after the quality judgment can be displayed on the screen. As an example, if the face frame in the displayed face image is in the first color, which indicates that it meets the quality requirement, the subsequent human verification process may be further performed based on the displayed face image. As another example, if the face frame in the displayed face image is in the second color, which indicates that the face frame does not meet the quality requirement, the compared person may adjust the position, the posture, and the like of the compared person relative to the image capturing device. And the image acquisition device can acquire the video stream data again and can execute the process again based on the acquired video stream data.
Therefore, in the embodiment of the invention, the working mode can be determined firstly to determine the relative orientation of the image acquisition device and the display screen, and then different processing is performed on the face image according to different working modes, so that the face image displayed on the screen is an erect image consistent with the compared person, therefore, a user can orient the display screen towards the compared person or the oriented worker according to needs, and the oriented compared person or the oriented worker can view the erect face image in real time. In addition, compared with a double-screen device, the embodiment of the invention can greatly reduce the hardware cost, reduce the power consumption and achieve the purpose of energy saving.
For example, if the face image with the first mark is displayed in S140, the further human verification process may include: and acquiring an identity image in the certificate to be verified, and judging whether the face image acquired by the image acquisition device and the identity image belong to the same person.
The acquiring of the identity image in the document to be verified may include: the identity image is obtained by an electronic reading mode.
The document to be verified may include an integrated circuit therein such that the personal verification system can read electronic information recorded therein from the integrated circuit, where the electronic information includes the identification image. For example, the integrated circuit may also be referred to as a chip or a microcircuit, which may be composed of a wafer, but the invention is not limited thereto. For example, the document to be verified may be an identity card, a social security card, or the like.
If the electronic reading is successful, the identity image may be acquired. In addition, it can be understood that other identity information of the certificate, such as name, address, etc., can be acquired through electronic reading. For example, assuming the document is an identification card, the acquired identification information may include name, nationality, address, identification number, expiration date, issuing authority, etc. Assuming that the document is a passport, the identity information acquired may include a name, address, passport number, expiration date, issuing location, etc.
If the electronic reading fails, the identity image can be further acquired by an Optical Character Recognition (OCR) method. The identity image may be resolved, for example, by scanning or taking a picture of the document, and then performing OCR on the image of the document. In addition, it can be understood that other identity information of the certificate, such as a name, an address and the like, can be acquired by the OCR mode while the identity image is acquired by the OCR mode. For example, assuming that the document is an identity card without magnetism, such as a business card, the acquired identity information may include a name, a name of a work unit, an address, a phone number, and the like.
Wherein, OCR can determine its shape by detecting dark, bright mode, then translate the shape into the computer word with the character recognition method; that is, the characters in the paper document can be optically converted into an image file with a black-and-white dot matrix, and the characters in the image are converted into a text format by recognition software for further editing and processing by the character processing software.
Therefore, the identity image can be obtained through the electronic reading mode at first, and the identity image is obtained through the OCR mode when the electronic reading mode fails, so that the validity of obtaining the identity image can be ensured, the comparison failure caused by single mode is avoided, and the processing efficiency is ensured.
Further, whether the acquired face image and the identity image belong to the same person or not can be judged through face recognition. Alternatively, it may be determined whether the mirror-symmetric face image with the first mark and the identity image in S140 belong to the same person through face recognition.
The face recognition algorithm used may be a pre-trained convolutional neural network, and the network structure of the neural network used in the embodiment of the present invention is not limited, and may be any one of ResNet, densnet, MobileNet, ShuffleNet, inclusion, and the like.
Specifically, a first feature vector of the face image can be extracted through a feature extraction network, and a second feature vector of the identity image can be extracted. And calculating the similarity between the first feature vector and the second feature vector, and determining whether the first feature vector and the second feature vector belong to the same person or not according to the similarity.
For example, the feature extraction network may be a convolutional neural network that is currently available for feature extraction, and is not described here in detail.
Illustratively, the distance between the first feature vector and the second feature vector may be calculated to calculate the similarity. For example, the distance may be any one of an euclidean distance, a cosine distance, a mahalanobis distance, and the like, or may be another distance, which is not limited in the present invention. After calculating the distance, the similarity may be calculated from the distance. As an example, the calculated distance may be directly used as the similarity. As another example, the similarity may be obtained by recalculation after obtaining the distance. The calculated similarity may be a value between 0 and 1.
If the obtained similarity is larger than or equal to the similarity threshold, the face image of the compared person and the identity image in the certificate can be determined to belong to the same person, otherwise, the face image and the identity image do not belong to the same person. The similarity threshold may be set according to actual conditions in practical applications, which is not limited in the present invention.
In addition, in the verification method of the embodiment of the invention, off-line comparison can be carried out, so that the time consumption of a network does not need to be considered, and the processing efficiency is further improved.
Thus, the human verification process of the embodiment of the invention can be completed. Optionally, if it is determined that the face image of the compared person and the identity image in the certificate belong to the same person, the method may further include: the identity information (information such as name) acquired from the certificate is associated with the face image of the compared person. For example, if the compared person is a visitor (such as a hotel guest), the face image and the corresponding identity information of the compared person can be registered when the visitor registers, so that manual input can be reduced, time consumption can be reduced, and efficiency can be improved.
It should be understood that the alignment process shown here is only one embodiment of the present invention, and other embodiments may be used to perform the alignment process, such as obtaining identity images only by electronic scanning without using OCR method. The invention is not limited in this regard.
FIG. 4 is a schematic block diagram of an apparatus for human authentication verification in accordance with an embodiment of the present invention. The apparatus 40 shown in fig. 4 may include a determination module 410, an acquisition module 420, a processing module 430, and a display module 440.
A determining module 410, configured to determine a current working mode, where the current working mode is a self-service mode or a non-self-service mode;
an obtaining module 420, configured to obtain a face image to be verified;
the processing module 430 is configured to obtain an upright face image of the face image according to the current working mode;
a display module 440, configured to display the upright face image.
Illustratively, the determining module 410 may be specifically configured to: and if the user selects the working mode, determining the working mode selected by the user as the current working mode.
If the user does not select the working mode, judging whether the last working mode is stored; if the last working mode is stored, determining that the current working mode is the last working mode, and if the last working mode is not stored, determining that the current working mode is a self-service mode; the self-service mode represents that the image acquisition device faces the same direction with the screen, and the non-self-service mode represents that the image acquisition device faces the opposite direction with the screen.
Illustratively, the obtaining module 420 may be specifically configured to: acquiring video stream data acquired by the image acquisition device; and determining the face image in the video stream data according to a face detection model.
Illustratively, the processing module 430 may be specifically configured to: carrying out mirror symmetry processing on the face image to obtain a face image after mirror symmetry;
if the current working mode is a self-service mode, determining the face image after mirror symmetry as the upright face image;
and if the current working mode is a non-self-service mode, rotating the face image after mirror symmetry by 180 degrees and determining the face image as the upright face image.
Optionally, the mirror symmetry processing may include: and rotating the face image by 180 degrees by taking the face-out direction of the face image as a rotating shaft.
Illustratively, the processing module 430 may also be configured to: and judging the quality of the face image, and marking the upright face image according to the quality judgment result.
Illustratively, the display module 440 may be configured to: and displaying the upright face image with the mark on a display screen.
The apparatus 40 shown in fig. 4 can implement the method for human verification shown in fig. 2 or fig. 3, and is not described herein again to avoid repetition.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In addition, another system for human authentication verification according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the steps of the method for human authentication verification shown in fig. 2 or fig. 3 when executing the computer program.
As shown in fig. 5, the system 50 may include a memory 510 and a processor 520, and may further include an image capture device 530 and a screen 540.
The memory 510 stores computer program code for implementing the respective steps in the method for human authentication according to an embodiment of the present invention.
The processor 520 is configured to execute the computer program code stored in the memory 510 to perform the respective steps of the method for human authentication according to the embodiment of the present invention, and is configured to implement the determination module 410, the acquisition module 420, the processing module 430 and the display module 440 in the apparatus for human authentication 40 according to the embodiment of the present invention.
Illustratively, the computer program code when executed by the processor 520 performs the steps of: determining a current working mode, wherein the current working mode is a self-service mode or a non-self-service mode; acquiring a face image to be verified; obtaining an upright face image of the face image according to the current working mode; and displaying the upright human face image.
In addition, an embodiment of the present invention further provides an electronic device, which may include the apparatus 40 shown in fig. 4. The electronic device may implement the method for human authentication as described above with reference to fig. 2 or 3.
In addition, the embodiment of the invention also provides a computer storage medium, and the computer storage medium is stored with the computer program. The computer program, when executed by a processor, may implement the steps of the method for human authentication as described in the foregoing fig. 2 or fig. 3. For example, the computer storage medium is a computer-readable storage medium.
The computer storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer readable storage medium can be any combination of one or more computer readable storage media, e.g., one containing computer readable program code for randomly generating sequences of action instructions and another containing computer readable program code for performing facial activity recognition.
Therefore, in the embodiment of the invention, the working mode can be determined firstly to determine the relative orientation of the image acquisition device and the display screen, and then different processing is performed on the face image according to different working modes, so that the face image displayed on the screen is an erect image consistent with the compared person, therefore, a user can orient the display screen towards the compared person or the oriented worker according to needs, and the oriented compared person or the oriented worker can view the erect face image in real time. In addition, compared with a double-screen device, the embodiment of the invention can greatly reduce the hardware cost, reduce the power consumption and achieve the purpose of energy saving.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the foregoing illustrative embodiments are merely exemplary and are not intended to limit the scope of the invention thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as set forth in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the method of the present invention should not be construed to reflect the intent: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
It will be understood by those skilled in the art that all of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where such features are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some of the modules in an item analysis apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the specific embodiment of the present invention or the description thereof, and the protection scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for human verification, the method comprising:
determining a current working mode, wherein the current working mode is a self-service mode or a non-self-service mode, the self-service mode represents that an image acquisition device and a display screen face the same direction, and the non-self-service mode represents that the image acquisition device and the display screen face the opposite direction;
acquiring a face image to be verified;
if the current working mode is a self-service mode, mirror symmetry processing is carried out on the face image and the face image is determined to be an upright face image;
if the current working mode is a non-self-service mode, performing mirror symmetry processing on the face image, then rotating the face image by 180 degrees, and determining the face image as an upright face image;
and displaying the upright human face image.
2. The method of claim 1, wherein determining the current operating mode comprises:
if the user selects the working mode, determining the working mode selected by the user as the current working mode;
if the user does not select the working mode, judging whether the last working mode is stored;
if the last working mode is stored, determining that the current working mode is the last working mode,
if the last working mode is not stored, determining that the current working mode is a self-service mode;
the self-service mode represents that the image acquisition device and the display screen face the same direction, and the non-self-service mode represents that the image acquisition device and the display screen face the opposite direction.
3. The method according to claim 1, wherein the obtaining of the face image to be verified comprises:
acquiring video stream data acquired by an image acquisition device;
and determining the face image in the video stream data according to a face detection model.
4. The method according to any one of claims 1 to 3,
the mirror symmetry processing includes: and rotating the face image by 180 degrees by taking the face-out direction of the face image as a rotating shaft.
5. The method of claim 4, further comprising, prior to displaying the upright face image:
and judging the quality of the face image, marking the upright face image according to the quality judgment result and displaying the upright face image on a display screen.
6. An apparatus for human authentication, the apparatus comprising:
the device comprises a determining module, a judging module and a display module, wherein the determining module is used for determining a current working mode, the current working mode is a self-service mode or a non-self-service mode, the self-service mode represents that an image acquisition device and a display screen face the same direction, and the non-self-service mode represents that the image acquisition device and the display screen face the opposite direction;
the acquisition module is used for acquiring a face image to be verified;
a processing module to: if the current working mode is a self-service mode, mirror symmetry processing is carried out on the face image and the face image is determined to be an upright face image, and if the current working mode is a non-self-service mode, the face image is rotated by 180 degrees after mirror symmetry processing is carried out on the face image and the face image is determined to be an upright face image;
and the display module is used for displaying the upright human face image.
7. A system for human authentication comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
8. A computer storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201810381539.4A 2018-04-25 2018-04-25 Method, apparatus, system and computer storage medium for testimony of a witness verification Active CN108875557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810381539.4A CN108875557B (en) 2018-04-25 2018-04-25 Method, apparatus, system and computer storage medium for testimony of a witness verification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810381539.4A CN108875557B (en) 2018-04-25 2018-04-25 Method, apparatus, system and computer storage medium for testimony of a witness verification

Publications (2)

Publication Number Publication Date
CN108875557A CN108875557A (en) 2018-11-23
CN108875557B true CN108875557B (en) 2020-12-18

Family

ID=64326524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810381539.4A Active CN108875557B (en) 2018-04-25 2018-04-25 Method, apparatus, system and computer storage medium for testimony of a witness verification

Country Status (1)

Country Link
CN (1) CN108875557B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917548A (en) * 2010-08-11 2010-12-15 无锡中星微电子有限公司 Image pickup device and method for adaptively adjusting picture
CN102148922A (en) * 2010-02-08 2011-08-10 联想(北京)有限公司 Electronic device, image collector and image collection control method
CN104065862A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic device
CN104503541A (en) * 2010-09-08 2015-04-08 苹果公司 Camera-based Orientation Fix From Portrait To Landscape
CN106843786A (en) * 2017-01-23 2017-06-13 宇龙计算机通信科技(深圳)有限公司 The open method of display screen, the opening device of display screen and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102401170B1 (en) * 2015-10-21 2022-05-24 삼성전자주식회사 Method and device for complex authentication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148922A (en) * 2010-02-08 2011-08-10 联想(北京)有限公司 Electronic device, image collector and image collection control method
CN101917548A (en) * 2010-08-11 2010-12-15 无锡中星微电子有限公司 Image pickup device and method for adaptively adjusting picture
CN104503541A (en) * 2010-09-08 2015-04-08 苹果公司 Camera-based Orientation Fix From Portrait To Landscape
CN104065862A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic device
CN106843786A (en) * 2017-01-23 2017-06-13 宇龙计算机通信科技(深圳)有限公司 The open method of display screen, the opening device of display screen and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
浅谈人脸识别技术及其应用;张骅;《计算机产品与流通》;20180415;第122-123页 *

Also Published As

Publication number Publication date
CN108875557A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US10699103B2 (en) Living body detecting method and apparatus, device and storage medium
CN106446873B (en) Face detection method and device
CN108875556B (en) Method, apparatus, system and computer storage medium for testimony of a witness verification
CN106599772B (en) Living body verification method and device and identity authentication method and device
CN109086691B (en) Three-dimensional face living body detection method, face authentication and identification method and device
CN107545241B (en) Neural network model training and living body detection method, device and storage medium
US10210415B2 (en) Method and system for recognizing information on a card
CN106650662B (en) Target object shielding detection method and device
CN108875731B (en) Target identification method, device, system and storage medium
WO2019061658A1 (en) Method and device for positioning eyeglass, and storage medium
CN105740778B (en) Improved three-dimensional human face in-vivo detection method and device
CN108875470B (en) Method and device for registering visitor and computer storage medium
WO2019200872A1 (en) Authentication method and apparatus, and electronic device, computer program, and storage medium
JP6351243B2 (en) Image processing apparatus and image processing method
CN111931594A (en) Face recognition living body detection method and device, computer equipment and storage medium
JP6071002B2 (en) Reliability acquisition device, reliability acquisition method, and reliability acquisition program
CN108875495B (en) Person-evidence verification device and person-evidence verification method
CN111163265A (en) Image processing method, image processing device, mobile terminal and computer storage medium
JP6969878B2 (en) Discriminator learning device and discriminator learning method
CN111008935A (en) Face image enhancement method, device, system and storage medium
WO2019061659A1 (en) Method and device for removing eyeglasses from facial image, and storage medium
CN109785439A (en) Human face sketch image generating method and Related product
CN108875553A (en) Method, apparatus, system and the computer storage medium that the testimony of a witness is veritified
CN108875557B (en) Method, apparatus, system and computer storage medium for testimony of a witness verification
CN116580432A (en) Online examination monitoring method, system, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant