CN113744366A - Certificate photo generation method, system and computer readable storage medium - Google Patents

Certificate photo generation method, system and computer readable storage medium Download PDF

Info

Publication number
CN113744366A
CN113744366A CN202111033092.XA CN202111033092A CN113744366A CN 113744366 A CN113744366 A CN 113744366A CN 202111033092 A CN202111033092 A CN 202111033092A CN 113744366 A CN113744366 A CN 113744366A
Authority
CN
China
Prior art keywords
photo
standard
certificate
user
image
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.)
Granted
Application number
CN202111033092.XA
Other languages
Chinese (zh)
Other versions
CN113744366B (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.)
Guangzhou Prestige Technology Co ltd
Original Assignee
Guangzhou Prestige 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 Guangzhou Prestige Technology Co ltd filed Critical Guangzhou Prestige Technology Co ltd
Priority to CN202111033092.XA priority Critical patent/CN113744366B/en
Publication of CN113744366A publication Critical patent/CN113744366A/en
Application granted granted Critical
Publication of CN113744366B publication Critical patent/CN113744366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Abstract

The embodiment of the application provides a method and a system for generating a certificate photo and a computer readable storage medium. A method of generating a certificate photo, comprising: acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.

Description

Certificate photo generation method, system and computer readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and a system for generating a certificate photo, and a computer-readable storage medium.
Background
The current process for handling identity cards is as follows: the certificate transactor performs dressing according to the certificate transacting requirement and the dressing requirement, takes pictures in advance to obtain the receipt, and then holds the receipt to a specified place for certificate transacting. The photographing link is very poor in experience for users, especially women specially adjust dressing according to the certificate handling requirements, the dressing needs to be changed after the photographing is finished, and the situation that the certificate handling requirements are not met can occur if personal photos are directly provided.
In the prior art, CN201910704917.2 discloses a method for synthesizing multiple identity card pictures based on XML, which includes acquiring the category and information of the certificate, and supporting second generation certificate, hong Kong and Macau station residence certificate and foreigner residence certificate; storing the acquired certificate information into an xml file for generating an image, and storing the certificate information into nodes corresponding to the xml file in different nodes according to the type of the certificate; reading certificate information in the xml file and configuration parameters of the synthesized certificate image into an image information class according to the type of the certificate; synthesizing a certificate image by using the front and back image files of the certificate and the data in the image information class; and acquiring the image in the specified directory. It can be seen that the prior art already has a technology for synthesizing a certificate photo into a business file, but the prior art has no application of certificate synthesis, because the prior art cannot ensure the safety of certificate synthesis.
How to realize the synthesis of the identity card under the condition of ensuring the safety, avoiding the misuse and the convenience becomes a technical problem which needs to be solved urgently by technical personnel in the field. .
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, a system, and a computer-readable storage medium for generating a certificate photo, which can prevent an office worker from being not a person corresponding to a corresponding identification number, i.e., prevent identity falsifying, and also prevent a certificate handling photo from being not a person, thereby preventing the possibility of falsely handling a certificate by using a photo of another person, not only improving the convenience of certificate handling, but also ensuring the accuracy of information of an identification card, i.e., preventing identity falsifying, and preventing the counterfeiting of another person by using a photo.
In a first aspect, an embodiment of the present application provides a method for generating a certificate photo, including:
acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time;
acquiring reference fingerprint information of the user to be authenticated based on the identity card number;
judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information;
acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo;
judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image;
and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the processing the first standard photo to obtain a standard certificate photo includes:
extracting a human body image of the user to be certified from the first standard photo;
cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement;
and calling a corresponding background image based on the certificate handling requirement, and synthesizing the background image and the target human body image into a standard certificate photo.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement includes:
cutting the human body image to obtain a first image of the human body part which meets the requirement of certificate handling;
and zooming the first image to obtain a target human body image meeting the requirement of the certificate handling size.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the determining whether the first standard photo and the face image are the same person according to the first standard photo and the face image includes:
carrying out face matching on the first standard photo and the face image to obtain similarity;
and if the similarity is greater than a preset threshold value, judging that the first standard photo and the face image are the same person.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the acquiring a first standard photo uploaded by a user and meeting a dressing and making up standard of the certificate photo includes:
acquiring a plurality of pre-prepared standard photos uploaded by a user, wherein the standard photos are obtained by shooting the user in advance according to a certificate handling, dressing and making up requirement;
identifying the plurality of standard photos to obtain a plurality of second standard photos which meet the certified dressing and making up requirement in each standard photo;
and selecting one of the second standard photos as a first standard photo.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the selecting one of the plurality of second standard photos as the first standard photo includes:
calculating the similarity between each second standard photo and the face image;
and taking the second standard photo with the maximum similarity as the first standard photo.
Optionally, in the method for generating a certificate photo according to the embodiment of the present application, the selecting one of the plurality of second standard photos as the first standard photo includes:
calculating the pixel color degree of each second standard picture;
and taking the second standard photo with the largest degree of plain color as the first standard photo.
In a second aspect, an embodiment of the present application further provides a system for generating a certificate photo, where the system includes: the storage comprises a program of the certificate photo generation method, and the program of the certificate photo generation method realizes the following steps when being executed by the processor:
acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time;
acquiring reference fingerprint information of the user to be authenticated based on the identity card number;
judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information;
acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo;
judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image;
and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.
Optionally, in the certificate photo generation system according to the embodiment of the present application, when executed by the processor, the program of the certificate photo generation method implements the following steps:
extracting a human body image of the user to be certified from the first standard photo;
cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement;
and calling a corresponding background image based on the certificate handling requirement, and synthesizing the background image and the target human body image into a standard certificate photo.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a certificate photo generation method program, and when the certificate photo generation method program is executed by a processor, the method implements the steps of the certificate photo generation method described in any one of the above.
As can be seen from the above, the certificate photo generation method and system provided in the embodiment of the present application acquire the identity card number, fingerprint information, and face image of the user to be authenticated, which are acquired in real time, by the certificate photo generation method; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; if the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo; thereby realize the generation of standard certificate photo, make the user can need not to make up specially and make up the collection that comes the self-service certificate handling equipment department of outside to carry out standard certificate photo, and because it has introduced fingerprint identification and face identification, the people that both can avoid the official and correspond with the identity card number that corresponds are not same alone, also prevented the problem of falsely using the identity, the photo that also can avoid handling the certificate is not same people with the person of handling the certificate, the possibility of falsely using other people's photo to handle the certificate has been avoided, not only can improve the convenience of handling the certificate, can also guarantee the degree of accuracy of identity card information, both can prevent that the identity from being falsely used, also can prevent to come counterfeit other people through counterfeit photo.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a first flowchart of a method for generating a certificate photo according to an embodiment of the present application.
Fig. 2 is a second flowchart of a method for generating a certificate photo according to an embodiment of the present application.
Fig. 3 is a third flowchart of a method for generating a certificate photo according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a certificate photo generation system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for generating a certificate photo in some embodiments of the present application. The certificate photo generation method is used in self-service certificate handling equipment. The certificate photo generation method comprises the following steps:
s101, acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time;
s102, acquiring reference fingerprint information of the user to be authenticated based on the identity card number;
s103, judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information;
s104, acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo;
s105, judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image;
and S106, if the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo.
In this step S101, the identification number may be obtained based on a manual input by the user. The fingerprint information is acquired by a fingerprint collector arranged on the self-service certificate handling equipment. The face image is a positive high-definition face image of the user collected by a high-definition camera of the self-service certificate handling equipment.
In step S102, the reference fingerprint information is the fingerprint information that the user entered during the last transaction, and since the fingerprint of the person is not changed, the fingerprint information can be used as a determination condition for determining whether the transactor is the person.
In step S103, if the fingerprint information is the same as the reference fingerprint information, it indicates that the transacted certificate is the principal, and if not, the transacted certificate is not the principal.
In step S104, the toilet dressing standard of the identification photo is a rule issued by the certificate authority, for example, the nose ring cannot be worn, the hair cannot block five sense organs, the beauty pupil cannot be worn, the sunglasses cannot be worn, the hair style cannot be too high, and the like, and the relevant rules can be specifically checked. Of course, a pre-established and trained neural network model may be used to determine compliance.
In step S105, a face matching algorithm commonly used in the prior art may be used to calculate a matching degree between the face in the first standard photo and the face image, and only when the matching degree is higher than a set threshold, it can be determined that the face in the first standard photo and the face image are the same person.
In step S106, if the person is the same person, the first standard photo is processed to obtain a standard identification photo, for example, background switching, image cropping, zooming, and the like are performed.
In some embodiments, as shown in fig. 2, this step S106 may include the following sub-steps: s1061, extracting the human body image of the user to be certified from the first standard photo; s1062, cutting and zooming the human body image to obtain a target human body image meeting the certificate handling requirements; s1063, calling a corresponding background image based on the certificate handling requirement, and combining the background image and the target human body image into a standard certificate photo. In step S1061, a background segmentation algorithm or a common automatic matting algorithm in the prior art may be used to obtain the human body image of the user. In step S1062, body parts other than the body part required for id card transaction are trimmed, and the size of the image is adjusted to the size prescribed for id card transaction. Specifically, in some embodiments, the human body image is cut to obtain a first image of a human body part meeting the requirement of certificate handling; and zooming the first image to obtain a target human body image meeting the requirement of the certificate handling size. In step S1063, different certificates correspond to different background images. When synthesizing, the standard certificate photo can be obtained by adopting an image synthesis algorithm in the prior art.
In some embodiments, this step S105 may include the steps of: s1051, carrying out face matching on the first standard photo and the face image to obtain similarity; s1052, if the similarity is larger than a preset threshold value, judging that the first standard photo and the face image are the same person. The preset threshold value is an empirical value obtained through multiple tests, so that the obtained first standard photo is guaranteed to be a user to be authenticated, and the representation force of the first standard photo is improved.
In some embodiments, as shown in fig. 3, this step S101 may include the steps of: s1011, acquiring a plurality of pre-prepared standard photos uploaded by a user, wherein the standard photos are obtained by shooting the user in advance according to a certificate handling, dressing and dressing requirement; s1012, identifying the standard photos to obtain a plurality of second standard photos meeting the certified dressing and making up requirements in each standard photo; and S1013, selecting one of the second standard photos as a first standard photo.
In step S1011, since the user' S own judgment of the standard may have a deviation, some more standard photos may be prepared, so as to avoid the situation that all of the standard photos do not meet the requirements during the transaction. The standard photo has no requirement on the background, only has a requirement on the dressing and the dressing of the user, and needs the user to perform the dressing and the dressing as much as possible according to the dressing and the dressing requirements.
In step S1012, a pre-trained neural network model is produced according to the dressing requirement, and a second standard photo meeting the dressing requirement is selected from the plurality of standard photos through the neural network model. And the quality of the screened second standard photo is improved by screening through the neural network model.
In this step 1013, there are many selection criteria, for example, a second standard photo with the highest pixel degree with the currently captured face image may be selected as the first standard photo, so as to improve the recognition degree or the recognition degree of the standard certificate photo.
In some embodiments, this step S1013 may include the steps of: calculating the similarity between each second standard photo and the face image; and taking the second standard photo with the maximum similarity as the first standard photo.
In some embodiments, this step S1013 may include the steps of: calculating the pixel color degree of each second standard picture; and taking the second standard photo with the largest degree of plain color as the first standard photo. The degree of pigment is used for evaluating the degree of makeup failure, and can be calculated by adopting a pre-trained neural network model.
As can be seen from the above, the certificate photo generation method provided in the embodiment of the present application obtains the identity card number, the fingerprint information, and the face image of the user to be authenticated, which are acquired in real time, by the certificate photo generation method; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; if the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo; thereby realize the generation of standard certificate photo, make the user can need not to make up specially and make up the collection that comes the self-service certificate handling equipment department of outside to carry out standard certificate photo, and because it has introduced fingerprint identification and face identification, the people that both can avoid the official to correspond with the identity card number is not same alone, also prevented the problem of identity falsely, the photo that also can avoid handling the certificate is not same people with the person of handling the certificate, the possibility of falsely using other people's photo to handle the certificate has been avoided, not only can improve the convenience of handling the certificate, can also guarantee the degree of accuracy of the information of identity card, can prevent that the identity from being falsely used, also can prevent to come counterfeit other people through counterfeit photo.
As shown in fig. 4, an embodiment of the present application further provides a certificate photo generation system, where the system includes: a memory 201 and a processor 202, wherein the memory 201 includes a program of a certificate photo generation method, and the program of the certificate photo generation method realizes the following steps when executed by the processor 202: acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.
Wherein, the identification number can be obtained based on the manual input of the user. The fingerprint information is acquired by a fingerprint collector arranged on the self-service certificate handling equipment. The face image is a positive high-definition face image of the user collected by a high-definition camera of the self-service certificate handling equipment.
The reference fingerprint information is the fingerprint information which is input by the user during the last certificate handling, and because the fingerprint of the person is not changed, the fingerprint information can be used as a judgment condition for judging whether the certificate handling person is the person.
If the fingerprint information is the same as the reference fingerprint information, the certificate transacted is the principal, otherwise, the certificate transacted is not the principal.
The dressing and dressing standard of the certificate photo is a rule issued by a certificate authority, for example, the certificate photo can not be worn with a nose ring, the hair can not shield five sense organs, the certificate photo can not be worn with a pupil, the certificate photo can not be provided with sunglasses, the hair style can not be too high, and related regulations can be checked. Of course, a pre-established and trained neural network model may be used to determine compliance.
The matching degree between the face in the first standard photo and the face image can be calculated by adopting a commonly used face matching algorithm in the prior art, and the face in the first standard photo and the face image can be judged to be the same person only when the matching degree is higher than a set threshold value.
If the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo, for example, performing background switching, and performing operations such as image cropping and zooming.
In some embodiments, the program of the certificate photo generation method, when executed by the processor 202, implements the steps of: extracting a human body image of the user to be certified from the first standard photo; cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement; and calling a corresponding background image based on the certificate handling requirement, and synthesizing the background image and the target human body image into a standard certificate photo. Wherein, the background segmentation algorithm or the common automatic cutout algorithm in the prior art can be adopted to obtain the human body image of the user. In which body parts other than those required for id card administration are cut off and the size of the image is adjusted to the size prescribed for id card administration. Specifically, in some embodiments, the human body image is cut to obtain a first image of a human body part meeting the requirement of certificate handling; and zooming the first image to obtain a target human body image meeting the requirement of the certificate handling size. Wherein, different certificates correspond to different background images. When synthesizing, the standard certificate photo can be obtained by adopting an image synthesis algorithm in the prior art.
In some embodiments, the program of the certificate photo generation method, when executed by the processor 202, implements the steps of: carrying out face matching on the first standard photo and the face image to obtain similarity; and if the similarity is greater than a preset threshold value, judging that the first standard photo and the face image are the same person. The preset threshold is an empirical value obtained through a plurality of tests.
In some embodiments, the program of the certificate photo generation method, when executed by the processor 202, implements the steps of: acquiring a plurality of pre-prepared standard photos uploaded by a user, wherein the standard photos are obtained by shooting the user in advance according to a certificate handling, dressing and making up requirement; identifying the plurality of standard photos to obtain a plurality of second standard photos which meet the certified dressing and making up requirement in each standard photo; and selecting one of the second standard photos as a first standard photo.
Because the judgment of the user on the standard may have deviation, some more standard photos can be prepared in advance, and the condition that the standard photos do not meet the requirements in handling is avoided. The standard photo has no requirement on the background, only has a requirement on the dressing and the dressing of the user, and needs the user to perform the dressing and the dressing as much as possible according to the dressing and the dressing requirements. Wherein, the requirement of feeling dressing requires to produce the neural network model of training in advance, screens out the second standard photo that accords with the requirement of dressing through this neural network model in these a plurality of standard photos. For example, the second standard photo with the highest pixel degree with the currently acquired face image can be selected as the first standard photo, so that the recognition degree or the recognition degree of the standard certificate photo is improved.
In some embodiments, the program of the certificate photo generation method, when executed by the processor 202, implements the steps of: calculating the similarity between each second standard photo and the face image; and taking the second standard photo with the maximum similarity as the first standard photo.
In some embodiments, the program of the certificate photo generation method, when executed by the processor 202, implements the steps of: calculating the pixel color degree of each second standard picture; and taking the second standard photo with the largest degree of plain color as the first standard photo. The degree of pigment is used for evaluating the degree of makeup failure, and can be calculated by adopting a pre-trained neural network model.
As can be seen from the above, the certificate photo generation system provided in the embodiment of the present application obtains the identity card number, the fingerprint information, and the face image of the user to be authenticated, which are acquired in real time, by the certificate photo generation method; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; if the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo; thereby realize the generation of standard certificate photo, make the user can need not to make up specially and make up the collection that comes the self-service certificate handling equipment department of outside to carry out standard certificate photo, and because it has introduced fingerprint identification and face identification, the people that both can avoid the official and correspond with the identity card number that corresponds are not same alone, also prevented the problem of falsely using the identity, the photo that also can avoid handling the certificate is not same people with the person of handling the certificate, the possibility of falsely using other people's photo to handle the certificate has been avoided, not only can improve the convenience of handling the certificate, can also guarantee the degree of accuracy of the information of identity card, both can prevent that the identity from being falsely used, also can prevent to come counterfeit other people through counterfeit photo.
The embodiment of the present application provides a storage medium, and when being executed by a processor, the computer program performs the method in any optional implementation manner of the above embodiment. The method specifically comprises the following steps: acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time, by a certificate photo generation method; acquiring reference fingerprint information of the user to be authenticated based on the identity card number; judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information; acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo; judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image; if the first standard photo is the same person, processing the first standard photo to obtain a standard certificate photo; thereby realize the generation of standard certificate photo, make up the collection that the self-service certificate handling equipment department who makes up the outside can not need to carry out the standard certificate photo specially for the user, and because it has introduced fingerprint identification and face identification, the people that both can avoid the official certificate and correspond with the identity card number that corresponds are not one person, also prevented the problem of falsely using the identity, the photo that also can avoid handling the certificate is one person different with the person of handling the certificate, avoided falsely using other people's photo to handle the possibility of certificate, not only can improve the convenience of handling the certificate, can also guarantee the degree of accuracy of the information of identity card, both can prevent that the identity from being falsely used, also can prevent to come counterfeit other people through counterfeit photo.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for generating a certificate photo, comprising:
acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time;
acquiring reference fingerprint information of the user to be authenticated based on the identity card number;
judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information;
acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo;
judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image;
and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.
2. The method of generating a certificate photo as claimed in claim 1, wherein said processing the first standard photo to obtain a standard certificate photo comprises:
extracting a human body image of the user to be certified from the first standard photo;
cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement;
and calling a corresponding background image based on the certificate handling requirement, and synthesizing the background image and the target human body image into a standard certificate photo.
3. The method for generating the certificate photo as claimed in claim 2, wherein the cutting and scaling process is performed on the human body image to obtain the target human body image meeting the certificate handling requirements, and the method comprises the following steps:
cutting the human body image to obtain a first image of the human body part which meets the requirement of certificate handling;
and zooming the first image to obtain a target human body image meeting the requirement of the certificate handling size.
4. The method for generating the identification photo according to claim 1, wherein the determining whether the first standard photo and the face image are the same person according to the first standard photo and the face image comprises:
carrying out face matching on the first standard photo and the face image to obtain similarity;
and if the similarity is greater than a preset threshold value, judging that the first standard photo and the face image are the same person.
5. The method for generating the certificate photo as claimed in claim 1, wherein the step of acquiring a first standard photo uploaded by a user and conforming to a dressing and making up standard of the certificate photo comprises:
acquiring a plurality of pre-prepared standard photos uploaded by a user, wherein the standard photos are obtained by shooting the user in advance according to a certificate handling, dressing and making up requirement;
identifying the plurality of standard photos to obtain a plurality of second standard photos which meet the certified dressing and making up requirement in each standard photo;
and selecting one of the second standard photos as a first standard photo.
6. The method for generating a certificate photo as claimed in claim 5, wherein the selecting one of the plurality of second standard photos as the first standard photo comprises:
calculating the similarity between each second standard photo and the face image;
and taking the second standard photo with the maximum similarity as the first standard photo.
7. The method for generating a certificate photo as claimed in claim 5, wherein the selecting one of the plurality of second standard photos as the first standard photo comprises:
calculating the pixel color degree of each second standard picture;
and taking the second standard photo with the largest degree of plain color as the first standard photo.
8. A system for generating a certificate photo, the system comprising: the storage comprises a program of the certificate photo generation method, and the program of the certificate photo generation method realizes the following steps when being executed by the processor:
acquiring an identity card number, fingerprint information and a face image of a user to be authenticated, which are acquired in real time;
acquiring reference fingerprint information of the user to be authenticated based on the identity card number;
judging whether the user to be authenticated is the user or not according to the fingerprint information and the reference fingerprint information;
acquiring a first standard photo which is uploaded by a user and accords with a dressing standard of a certificate photo;
judging whether the first standard photo and the face image are the same person or not according to the first standard photo and the face image;
and if the person is the same person, processing the first standard photo to obtain a standard certificate photo.
9. The system according to claim 8, wherein the program of the method for generating a certificate photo realizes the following steps when executed by the processor:
extracting a human body image of the user to be certified from the first standard photo;
cutting and scaling the human body image to obtain a target human body image meeting the certificate handling requirement;
and calling a corresponding background image based on the certificate handling requirement, and synthesizing the background image and the target human body image into a standard certificate photo.
10. A computer-readable storage medium, characterized in that it comprises a certificate photo generation method program which, when executed by a processor, carries out the steps of a certificate photo generation method as claimed in any one of claims 1 to 7.
CN202111033092.XA 2021-09-03 2021-09-03 Credential photo generation method, system and computer readable storage medium Active CN113744366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111033092.XA CN113744366B (en) 2021-09-03 2021-09-03 Credential photo generation method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033092.XA CN113744366B (en) 2021-09-03 2021-09-03 Credential photo generation method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113744366A true CN113744366A (en) 2021-12-03
CN113744366B CN113744366B (en) 2024-04-26

Family

ID=78735449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033092.XA Active CN113744366B (en) 2021-09-03 2021-09-03 Credential photo generation method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113744366B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005189490A (en) * 2003-12-25 2005-07-14 Oyo Denshi Kenkyusho:Kk Device for taking photograph for identification
KR20090132839A (en) * 2008-06-23 2009-12-31 김학일 System and method for issuing photo-id card
JP2012163857A (en) * 2011-02-08 2012-08-30 Dainippon Printing Co Ltd Identification photograph taking apparatus and identification photograph taking system
JP2015165255A (en) * 2014-02-28 2015-09-17 フリュー株式会社 Identification photograph creation device and identification photograph creation method
CN106652228A (en) * 2016-11-24 2017-05-10 广州市华标科技发展有限公司 Self-service type snapshooting equipment and method
KR101849633B1 (en) * 2017-04-24 2018-05-31 한철진 Id photo forgery preventing method and system
JP2020038441A (en) * 2018-09-03 2020-03-12 大日本印刷株式会社 Issuance device, server, issuance system, method for issuance, and program
CN112995520A (en) * 2021-04-16 2021-06-18 广州卓腾科技有限公司 Method and system for quickly shooting certificate photo and readable storage medium
CN113255505A (en) * 2021-05-20 2021-08-13 中国联合网络通信集团有限公司 Certificate photo generation method, device, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005189490A (en) * 2003-12-25 2005-07-14 Oyo Denshi Kenkyusho:Kk Device for taking photograph for identification
KR20090132839A (en) * 2008-06-23 2009-12-31 김학일 System and method for issuing photo-id card
JP2012163857A (en) * 2011-02-08 2012-08-30 Dainippon Printing Co Ltd Identification photograph taking apparatus and identification photograph taking system
JP2015165255A (en) * 2014-02-28 2015-09-17 フリュー株式会社 Identification photograph creation device and identification photograph creation method
CN106652228A (en) * 2016-11-24 2017-05-10 广州市华标科技发展有限公司 Self-service type snapshooting equipment and method
KR101849633B1 (en) * 2017-04-24 2018-05-31 한철진 Id photo forgery preventing method and system
JP2020038441A (en) * 2018-09-03 2020-03-12 大日本印刷株式会社 Issuance device, server, issuance system, method for issuance, and program
CN112995520A (en) * 2021-04-16 2021-06-18 广州卓腾科技有限公司 Method and system for quickly shooting certificate photo and readable storage medium
CN113255505A (en) * 2021-05-20 2021-08-13 中国联合网络通信集团有限公司 Certificate photo generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113744366B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
JP4406547B2 (en) ID card creation device, ID card, face authentication terminal device, face authentication device and system
CN108171032A (en) A kind of identity identifying method, electronic device and computer readable storage medium
CN108428275A (en) Row number method, server and storage medium based on recognition of face
CN107657525A (en) One kind loan measures and procedures for the examination and approval and server
CN109064178A (en) Payment method, payment device, server and computer-readable storage medium
CN107944378A (en) The personal identification method and self-help serving system of a kind of Self-Service
CN108171463A (en) A kind of long-range face label method, electronic device and computer readable storage medium
CN111898413A (en) Face recognition method, face recognition device, electronic equipment and medium
CN110321792A (en) Without card enchashment method, apparatus, equipment and computer readable storage medium
CN113221732B (en) Realization method for precisely manufacturing intelligent certificate card by big data based on face recognition
JP6956196B2 (en) An image candidate determination device, an image candidate determination method, a program for controlling the image candidate determination device, and a recording medium containing the program.
CN110175990A (en) Quality of human face image determination method, device and computer equipment
CN112199530A (en) Multi-dimensional face library picture automatic updating method, system, equipment and medium
CN111738078A (en) Face recognition method and device
Grother et al. Biometric specifications for personal identity verification
CN111563105A (en) Sleep management method and device, electronic equipment and storage medium
CN112995520B (en) Method and system for quickly shooting certificate photo and readable storage medium
CN107656959A (en) A kind of message leaving method, device and message equipment
CN110310419A (en) A kind of intelligence based on recognition of face sells cigarette method
CN109785114A (en) Credit data methods of exhibiting, device, equipment and medium for audit of providing a loan
CN113744366A (en) Certificate photo generation method, system and computer readable storage medium
JP2013535755A (en) Unattended loan processing method
CN113556471B (en) Certificate photo generation method, system and computer readable storage medium
RU2365995C2 (en) System and method of recording two-dimensional images
CN111739182A (en) Attendance checking method and device, electronic equipment 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