CN112995520B - Method and system for quickly shooting certificate photo and readable storage medium - Google Patents

Method and system for quickly shooting certificate photo and readable storage medium Download PDF

Info

Publication number
CN112995520B
CN112995520B CN202110412982.5A CN202110412982A CN112995520B CN 112995520 B CN112995520 B CN 112995520B CN 202110412982 A CN202110412982 A CN 202110412982A CN 112995520 B CN112995520 B CN 112995520B
Authority
CN
China
Prior art keywords
photo
auxiliary
initial
photos
standard
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
CN202110412982.5A
Other languages
Chinese (zh)
Other versions
CN112995520A (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 CN202110412982.5A priority Critical patent/CN112995520B/en
Publication of CN112995520A publication Critical patent/CN112995520A/en
Application granted granted Critical
Publication of CN112995520B publication Critical patent/CN112995520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application provides a method and a system for quickly shooting a certificate photo. The method for quickly shooting the certificate photo comprises the following steps: acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; the auxiliary photo is adopted to repair the main photo, and the certificate photo meeting the standard is obtained. A plurality of continuously shot photos are combined, so that the situation that all parts simultaneously reach the standard is not needed, the efficiency is improved, the shooting difficulty is reduced, and the user experience can be improved.

Description

Method and system for quickly shooting certificate photo and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of photographing, in particular to a method and a system for quickly photographing a certificate photo and a readable storage medium.
Background
The shooting of the identification photo needs to be carried out strictly according to the corresponding standard, and expression management and posture management, particularly identity cards and the like need to be carried out. However, the user may not manage the parts synchronously during the photographing process, for example, when the user keeps their shoulders upright and their mouth slightly exposes their teeth, or when the user opens their eyes and their mouth meets the standard, the user may be askew and it is difficult and time-consuming to reach the parts to the standard at the same time.
Therefore, the prior art has defects and needs to be improved urgently.
Disclosure of Invention
In order to solve at least one technical problem, the invention provides a method and a system for quickly shooting a certificate photo, which combine a plurality of continuously shot photos, so that each part does not need to reach the standard at the same time, the efficiency is improved, the shooting difficulty is reduced, and the user experience can be improved.
In order to achieve the purpose, the invention provides a method for quickly shooting a certificate photo, which comprises the following steps:
acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment;
selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos;
and repairing the main photo by adopting the auxiliary photo to obtain a certificate photo meeting the standard.
Optionally, in the method for quickly capturing a certificate photo according to the embodiment of the present application, the selecting an initial photo with a maximum matching degree with a standard certificate photo from the plurality of initial photos as a main photo and taking other initial photos as auxiliary photos includes:
dividing each initial photo into a plurality of first areas according to the distribution of human body parts;
matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result;
calculating the matching degree of each initial photo according to each judgment result;
selecting the initial photo with the maximum matching degree from the plurality of initial photos as a main photo;
and taking other initial photos with the matching degrees smaller than the maximum matching degree as auxiliary photos.
Optionally, in the method for quickly capturing a certificate photo according to the embodiment of the present application, the calculating the matching degree of each initial photo according to each determination result includes:
obtaining the matching degree of each initial photo according to the following formula P = a1/a 2; wherein, P is the matching degree, a1 is the number of the first regions meeting the criterion in the initial photo, and a2 is the total number of the first regions in the initial photo.
Optionally, in the method for quickly capturing a certificate photo according to the embodiment of the present application, the repairing the main photo with the auxiliary photo to obtain a certificate photo meeting the standard includes:
screening out a first region which does not meet the standard in the main photo according to the judgment result to serve as a region to be repaired;
screening out at least one auxiliary photo to be selected which can repair each area to be repaired from a plurality of auxiliary photos;
selecting a target auxiliary photo from the at least one auxiliary photo to be selected;
and repairing the corresponding first area of the main photo by adopting the corresponding area of the target auxiliary photo to obtain the certificate photo meeting the standard.
Optionally, in the method for quickly taking a certificate photo according to the embodiment of the present application, the screening at least one auxiliary photo to be selected that can repair each of the areas to be repaired from the plurality of auxiliary photos includes:
and if the first area of the auxiliary photo corresponding to the area to be repaired of the main photo meets the standard, judging that the auxiliary photo is the auxiliary photo to be selected corresponding to the area to be repaired.
Optionally, in the method for quickly capturing a certificate photo according to the embodiment of the present application, the selecting an auxiliary target photo from the at least one auxiliary candidate photo includes:
acquiring a first photographing characteristic parameter of each auxiliary photo to be selected;
acquiring a second photographing characteristic parameter of the main photograph;
calculating the similarity between the first photographing characteristic parameter of each auxiliary photo to be selected and the second photographing characteristic parameter of the main photo;
and selecting the target auxiliary photo with the maximum similarity from the at least one auxiliary photo to be selected.
Optionally, in the method for quickly shooting a certificate photo in the embodiment of the present application, the obtaining multiple initial photos continuously shot by the target user in a preset shooting area of the self-service certificate handling device includes:
displaying a photographing standard of the certificate photo on a display screen of the self-service certificate handling equipment to remind a target user of corresponding posture and expression management;
and continuously shooting the target user positioned in the preset shooting area within a preset time period after the shooting standard is displayed so as to obtain a plurality of initial photos.
In a second aspect, an embodiment of the present application further provides a system for quickly capturing a certificate photo, where the system includes: the storage comprises a certificate photo quick shooting method program, and the certificate photo quick shooting method program realizes the following steps when executed by the processor:
acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment;
selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos;
and repairing the main photo by adopting the auxiliary photo to obtain a certificate photo meeting the standard.
Optionally, in the system for quickly capturing a certificate photo according to the embodiment of the present application, when executed by the processor, the program of the method for quickly capturing a certificate photo realizes the following steps:
dividing each initial photo into a plurality of first areas according to the distribution of human body parts;
matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result;
calculating the matching degree of each initial photo according to each judgment result;
selecting the initial photo with the maximum matching degree from the plurality of initial photos as a main photo;
and taking other initial photos with the matching degrees smaller than the maximum matching degree as auxiliary photos.
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 quick photo shooting method program, and when the quick photo shooting method program is executed by a processor, the method implements the steps of the quick photo shooting method described in any one of the above.
As can be seen from the above, the method and the system for rapidly shooting the certificate photo, provided by the embodiment of the application, acquire a plurality of initial photos continuously shot by the target user in the preset shooting area of the self-service certificate handling device; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard; therefore, the rapid shooting is achieved to obtain the certificate photo meeting the corresponding certificate standard, due to the fact that in the shooting process, the user can not synchronize the management of each part, for example, when the user puts the user right at the shoulder and slightly exposes the mouth to the teeth, the user closes the eyes, or when the user opens the eyes and the mouth meets the standard, the user is askew, the user needs to reach the standard at each part at the same time with higher difficulty, time and time are long, multiple continuously shot photos can be combined, the user does not need to reach the standard at each part at the same time, efficiency is improved, shooting difficulty is reduced, and user experience can be improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a first flowchart of a method for rapid photographing of a document photo according to the present invention;
FIG. 2 is a second flowchart of a method for rapid photographing of identification photographs according to the present invention;
FIG. 3 is a third flowchart of a method for fast photographing a document photo according to the present invention;
fig. 4 shows a block diagram of a fast photographing system for a certificate photo according to the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 is a flowchart of a method for quickly photographing a certificate photo according to the present invention. The method for quickly shooting the certificate photo is used in self-service certificate handling equipment. The self-service certificate handling equipment can be equipment for handling identity cards and can also be equipment for handling certificates such as residence permit, driving permit, port and Macau pass and the like. The method for quickly shooting the certificate photo comprises the following steps:
s101, acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment;
s102, selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos;
s103, adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard.
In step S101, the self-service certificate transaction device may be a device for handling an identity card, or a device for handling certificates such as a residence permit, a driver' S license, a port and australian pass. In this embodiment, the device is used for handling identity cards. Self-service certificate handling equipment is provided with high definition digtal camera in order to gather target user's image, is provided with fingerprint identification module in order to gather target user's fingerprint, is provided with the touch-control display screen and supplies the user to carry out information input. When continuous shooting is performed, it is generally performed to detect that the target user enters the preset shooting area, for example, continuous shooting is performed within five seconds, and 10 pictures are shot per second.
In step S102, the matching degree may be calculated by using a pre-trained neural network model, or of course, other methods may also be used, for example, a partitioned matching algorithm may be used to calculate whether each region matches the criterion, and then the overall matching degree is calculated.
In step S103, when the auxiliary photo is used to repair the main photo, the region meeting the standard in the auxiliary photo can be scratched to repair the corresponding region not meeting the standard of the main photo, and operations such as scaling and cutting are required during repairing, or of course, an image fusion algorithm can be used to repair.
Specifically, as shown in fig. 2, in some embodiments, this step S102 may include the following sub-steps: s1021, dividing each initial photo into a plurality of first areas according to the distribution of human body parts; s1022, matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result; s1023, calculating the matching degree of each initial photo according to each judgment result; s1024, selecting the initial photo with the maximum matching degree from the initial photos as a main photo; and S1025, taking the other initial photos with the matching degrees smaller than the maximum matching degree as auxiliary photos. For example, the plurality of first regions may include a shoulder region, a mouth region, an eye region, a hair region, and the like, but is not limited thereto, and the regions are divided mainly according to the corresponding identification photo standard. When each first region of each initial photo is matched with the corresponding region of the standard certificate photo, a pre-trained neural network model can be adopted, and a matching algorithm in the prior art can also be adopted for realizing the matching. For example, taking a picture requires opening the eyes, and if you close the eyes, the eye area does not meet the corresponding criteria. When the matching degree of each initial photo is calculated, the matching degree of each initial photo can be obtained according to the following formula P = a1/a 2; wherein, P is the matching degree, a1 is the number of the first regions meeting the criterion in the initial photo, and a2 is the total number of the first regions in the initial photo.
As shown in fig. 3, in some embodiments, this step S103 may include the following sub-steps: s1031, screening out a first region which does not meet the standard in the main picture according to the judgment result to serve as a region to be repaired; s1032, screening at least one auxiliary photo to be selected, which can repair each area to be repaired, from the plurality of auxiliary photos; s1033, selecting a target auxiliary photo from the at least one auxiliary photo to be selected; s1034, repairing the corresponding first region of the main photo by adopting the corresponding region of the target auxiliary photo to obtain a certificate photo meeting the standard.
The area to be repaired is that the local area or the whole area of the area does not meet the standard of the certificate photo, such as tight eyes, mouth distortion, head inclination or uneven shoulders. When the auxiliary photos to be selected are screened, the following judgment standards can be adopted: and if the first area of the auxiliary photo corresponding to the area to be repaired of the main photo meets the standard, judging that the auxiliary photo is the auxiliary photo to be selected corresponding to the area to be repaired.
When the target auxiliary photo is screened, the auxiliary photo to be selected which is close to the illumination, exposure parameters, shooting angle and the like of the main photo is selected as the target auxiliary photo as much as possible, so that the repairing effect and the quality of the main photo are improved. Among them, it is possible to adopt: acquiring a first photographing characteristic parameter of each auxiliary photo to be selected; acquiring a second photographing characteristic parameter of the main photograph; calculating the similarity between the first photographing characteristic parameter of each auxiliary photo to be selected and the second photographing characteristic parameter of the main photo; and selecting the target auxiliary photo with the maximum similarity from the at least one auxiliary photo to be selected. The photographing characteristic parameters may include a photographing angle, a photographing exposure parameter, an illumination parameter, and the like. When calculating the similarity, the weight can be set for each parameter according to experience, thereby being convenient for calculating the similarity.
In some embodiments, this step S101 may include the following sub-steps: displaying a photographing standard of the certificate photo on a display screen of the self-service certificate handling equipment to remind a target user of corresponding posture and expression management; and continuously shooting the target user positioned in the preset shooting area within a preset time period after the shooting standard is displayed so as to obtain a plurality of initial photos. The probability of successful photographing can be improved by reminding.
As can be seen from the above, the method for rapidly shooting the certificate photo provided by the embodiment of the application obtains a plurality of initial photos continuously shot by the target user in the preset shooting area of the self-service certificate handling device; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard; therefore, the rapid shooting is achieved to obtain the certificate photo meeting the corresponding certificate standard, due to the fact that in the shooting process, the user can not synchronize the management of each part, for example, when the user puts the user right at the shoulder and slightly exposes the mouth to the teeth, the user closes the eyes, or when the user opens the eyes and the mouth meets the standard, the user is askew, the user needs to reach the standard at each part at the same time with higher difficulty, time and time are long, multiple continuously shot photos can be combined, the user does not need to reach the standard at each part at the same time, efficiency is improved, shooting difficulty is reduced, and user experience can be improved.
As shown in fig. 4, an embodiment of the present application further provides a system for quickly photographing a certificate photo, where the system includes: a memory 201 and a processor 202, wherein the memory 201 includes a certificate photo fast shooting method program, and the certificate photo fast shooting method program realizes the following steps when executed by the processor 202: acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; and repairing the main photo by adopting the auxiliary photo to obtain a certificate photo meeting the standard.
The self-service certificate handling equipment can be equipment for handling identity cards and can also be equipment for handling certificates such as residence permit, driving permit, Hongkong and Macau pass and the like. In this embodiment, the device is used for handling identity cards. Self-service certificate handling equipment is provided with high definition digtal camera in order to gather target user's image, is provided with fingerprint identification module in order to gather target user's fingerprint, is provided with the touch-control display screen and supplies the user to carry out information input. When continuous shooting is performed, it is generally performed to detect that the target user enters the preset shooting area, for example, continuous shooting is performed within five seconds, and 10 pictures are shot per second.
The matching degree may be calculated by using a pre-trained neural network model, or of course, other methods may be used, for example, a partitioned matching algorithm may be used to calculate whether each region matches the standard, and then the overall matching degree is calculated.
The auxiliary photo is adopted to correct the main photo, the area meeting the standard in the auxiliary photo can be scratched to correct the corresponding area not meeting the standard of the main photo, scaling, cutting and other operations are needed during correction, and of course, an image fusion algorithm can be adopted to correct the area.
Specifically, in some embodiments, the identification photo fast shooting method program when executed by the processor 202 implements the following steps: dividing each initial photo into a plurality of first areas according to the distribution of human body parts; matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result; calculating the matching degree of each initial photo according to each judgment result; selecting the initial photo with the maximum matching degree from the plurality of initial photos as a main photo; and taking other initial photos with the matching degrees smaller than the maximum matching degree as auxiliary photos. For example, the plurality of first regions may include a shoulder region, a mouth region, an eye region, a hair region, and the like, but is not limited thereto, and the regions are divided mainly according to the corresponding identification photo standard. When each first region of each initial photo is matched with the corresponding region of the standard certificate photo, a pre-trained neural network model can be adopted, and a matching algorithm in the prior art can also be adopted for realizing the matching. For example, taking a picture requires opening the eyes, and if you close the eyes, the eye area does not meet the corresponding criteria. When the matching degree of each initial photo is calculated, the matching degree of each initial photo can be obtained according to the following formula P = a1/a 2; wherein, P is the matching degree, a1 is the number of the first regions meeting the criterion in the initial photo, and a2 is the total number of the first regions in the initial photo.
In some embodiments, the identification photo fast shooting method program when executed by the processor 202 implements the steps of: screening out a first region which does not meet the standard in the main photo according to the judgment result to serve as a region to be repaired; screening out at least one auxiliary photo to be selected which can repair each area to be repaired from a plurality of auxiliary photos; selecting a target auxiliary photo from the at least one auxiliary photo to be selected; and repairing the corresponding first area of the main photo by adopting the corresponding area of the target auxiliary photo to obtain the certificate photo meeting the standard.
The area to be repaired is that the local area or the whole area of the area does not meet the standard of the certificate photo, such as tight eyes, mouth distortion, head inclination or uneven shoulders. When the auxiliary photos to be selected are screened, the following judgment standards can be adopted: and if the first area of the auxiliary photo corresponding to the area to be repaired of the main photo meets the standard, judging that the auxiliary photo is the auxiliary photo to be selected corresponding to the area to be repaired.
When the target auxiliary photo is screened, the auxiliary photo to be selected which is close to the illumination, exposure parameters, shooting angle and the like of the main photo is selected as the target auxiliary photo as much as possible, so that the repairing effect and the quality of the main photo are improved. Among them, it is possible to adopt: acquiring a first photographing characteristic parameter of each auxiliary photo to be selected; acquiring a second photographing characteristic parameter of the main photograph; calculating the similarity between the first photographing characteristic parameter of each auxiliary photo to be selected and the second photographing characteristic parameter of the main photo; and selecting the target auxiliary photo with the maximum similarity from the at least one auxiliary photo to be selected. The photographing characteristic parameters may include a photographing angle, a photographing exposure parameter, an illumination parameter, and the like. When calculating the similarity, the weight can be set for each parameter according to experience, thereby being convenient for calculating the similarity.
In some embodiments, the identification photo fast shooting method program when executed by the processor 202 implements the steps of: displaying a photographing standard of the certificate photo on a display screen of the self-service certificate handling equipment to remind a target user of corresponding posture and expression management; and continuously shooting the target user positioned in the preset shooting area within a preset time period after the shooting standard is displayed so as to obtain a plurality of initial photos. The probability of successful photographing can be improved by reminding.
As can be seen from the above, the rapid certificate photo shooting system provided in the embodiment of the application obtains a plurality of initial photos continuously shot by a target user in a preset shooting area of a self-service certificate handling device; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard; therefore, the rapid shooting is achieved to obtain the certificate photo meeting the corresponding certificate standard, due to the fact that in the shooting process, the user can not synchronize the management of each part, for example, when the user puts the user right at the shoulder and slightly exposes the mouth to the teeth, the user closes the eyes, or when the user opens the eyes and the mouth meets the standard, the user is askew, the user needs to reach the standard at each part at the same time with higher difficulty, time and time are long, multiple continuously shot photos can be combined, the user does not need to reach the standard at each part at the same time, efficiency is improved, shooting difficulty is reduced, and user experience can be improved.
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 quick certificate photo shooting method program, and when the quick certificate photo shooting method program is executed by a processor, the steps of the quick certificate photo shooting method according to any of the above embodiments are implemented. Thereby realize specifically: acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment; selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos; adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard; therefore, the rapid shooting is achieved to obtain the certificate photo meeting the corresponding certificate standard, due to the fact that in the shooting process, the user can not synchronize the management of each part, for example, when the user puts the user right at the shoulder and slightly exposes the mouth to the teeth, the user closes the eyes, or when the user opens the eyes and the mouth meets the standard, the user is askew, the user needs to reach the standard at each part at the same time with higher difficulty, time and time are long, multiple continuously shot photos can be combined, the user does not need to reach the standard at each part at the same time, efficiency is improved, shooting difficulty is reduced, and user experience can be improved.
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. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or 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.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the 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 all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (4)

1. A method for quickly shooting a certificate photo is characterized by comprising the following steps:
acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment;
selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos;
adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard;
the selecting the initial photo with the maximum matching degree with the standard certificate photo from the plurality of initial photos as a main photo and the other initial photos as auxiliary photos comprises the following steps:
dividing each initial photo into a plurality of first areas according to the distribution of human body parts;
matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result;
calculating the matching degree of each initial photo according to each judgment result;
selecting the initial photo with the maximum matching degree from the plurality of initial photos as a main photo;
taking other initial photos with the matching degree smaller than the maximum matching degree as auxiliary photos;
the calculating the matching degree of each initial photo according to each judgment result comprises the following steps:
obtaining the matching degree of each initial photo according to the following formula P = a1/a 2; wherein, P is the matching degree, a1 is the number of the first regions meeting the standard in the initial photo, a2 is the total number of the first regions in the initial photo;
adopting the auxiliary photo to repair the main photo to obtain a standard-compliant certificate photo, comprising:
screening out a first region which does not meet the standard in the main photo according to the judgment result to serve as a region to be repaired;
screening out at least one auxiliary photo to be selected which can repair each area to be repaired from a plurality of auxiliary photos;
selecting a target auxiliary photo from the at least one auxiliary photo to be selected;
repairing the corresponding first area of the main photo by adopting the corresponding area of the target auxiliary photo to obtain a certificate photo meeting the standard;
the screening out at least one auxiliary photo to be selected from a plurality of auxiliary photos which can repair each area to be repaired comprises the following steps:
if a first region of the auxiliary photo corresponding to the region to be repaired of the main photo meets a standard, judging that the auxiliary photo is a to-be-selected auxiliary photo corresponding to the region to be repaired;
the region to be repaired means that the local or whole region does not accord with the standard of the certificate photo;
the selecting a target auxiliary photo from the at least one auxiliary photo to be selected includes:
acquiring a first photographing characteristic parameter of each auxiliary photo to be selected;
acquiring a second photographing characteristic parameter of the main photograph;
calculating the similarity between the first photographing characteristic parameter of each auxiliary photo to be selected and the second photographing characteristic parameter of the main photo;
and selecting the target auxiliary photo with the maximum similarity from the at least one auxiliary photo to be selected.
2. The method for rapidly shooting the certificate photo according to claim 1, wherein the step of obtaining a plurality of initial photos continuously shot by a target user in a preset shooting area of the self-service certificate handling equipment comprises the following steps:
displaying a photographing standard of the certificate photo on a display screen of the self-service certificate handling equipment to remind a target user of corresponding posture and expression management;
and continuously shooting the target user positioned in the preset shooting area within a preset time period after the shooting standard is displayed so as to obtain a plurality of initial photos.
3. A quick photographing system for identification photographs, comprising: the storage comprises a certificate photo quick shooting method program, and the certificate photo quick shooting method program realizes the following steps when executed by the processor:
acquiring a plurality of continuously shot initial photos of a target user in a preset shooting area of the self-service certificate handling equipment;
selecting the initial photo with the maximum matching degree with the standard certificate photo from the initial photos as a main photo and taking other initial photos as auxiliary photos;
adopting the auxiliary photo to repair the main photo to obtain a certificate photo meeting the standard;
the selecting the initial photo with the maximum matching degree with the standard certificate photo from the plurality of initial photos as a main photo and the other initial photos as auxiliary photos comprises the following steps:
dividing each initial photo into a plurality of first areas according to the distribution of human body parts;
matching each first area of each initial photo with a corresponding area of a standard certificate photo to judge whether the first area meets the standard or not and obtain a judgment result;
calculating the matching degree of each initial photo according to each judgment result;
selecting the initial photo with the maximum matching degree from the plurality of initial photos as a main photo;
taking other initial photos with the matching degree smaller than the maximum matching degree as auxiliary photos;
the calculating the matching degree of each initial photo according to each judgment result comprises the following steps:
obtaining the matching degree of each initial photo according to the following formula P = a1/a 2; wherein, P is the matching degree, a1 is the number of the first regions meeting the standard in the initial photo, a2 is the total number of the first regions in the initial photo;
adopting the auxiliary photo to repair the main photo to obtain a standard-compliant certificate photo, comprising:
screening out a first region which does not meet the standard in the main photo according to the judgment result to serve as a region to be repaired;
screening out at least one auxiliary photo to be selected which can repair each area to be repaired from a plurality of auxiliary photos;
selecting a target auxiliary photo from the at least one auxiliary photo to be selected;
repairing the corresponding first area of the main photo by adopting the corresponding area of the target auxiliary photo to obtain a certificate photo meeting the standard;
the screening out at least one auxiliary photo to be selected from a plurality of auxiliary photos which can repair each area to be repaired comprises the following steps:
if a first region of the auxiliary photo corresponding to the region to be repaired of the main photo meets a standard, judging that the auxiliary photo is a to-be-selected auxiliary photo corresponding to the region to be repaired;
the region to be repaired means that the local or whole region does not accord with the standard of the certificate photo;
the selecting a target auxiliary photo from the at least one auxiliary photo to be selected includes:
acquiring a first photographing characteristic parameter of each auxiliary photo to be selected;
acquiring a second photographing characteristic parameter of the main photograph;
calculating the similarity between the first photographing characteristic parameter of each auxiliary photo to be selected and the second photographing characteristic parameter of the main photo;
and selecting the target auxiliary photo with the maximum similarity from the at least one auxiliary photo to be selected.
4. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a fast-speed shooting method program for a certificate photo, and when the fast-speed shooting method program is executed by a processor, the steps of the fast-speed shooting method for a certificate photo according to any one of claims 1 to 2 are implemented.
CN202110412982.5A 2021-04-16 2021-04-16 Method and system for quickly shooting certificate photo and readable storage medium Active CN112995520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110412982.5A CN112995520B (en) 2021-04-16 2021-04-16 Method and system for quickly shooting certificate photo and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110412982.5A CN112995520B (en) 2021-04-16 2021-04-16 Method and system for quickly shooting certificate photo and readable storage medium

Publications (2)

Publication Number Publication Date
CN112995520A CN112995520A (en) 2021-06-18
CN112995520B true CN112995520B (en) 2021-09-24

Family

ID=76340914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110412982.5A Active CN112995520B (en) 2021-04-16 2021-04-16 Method and system for quickly shooting certificate photo and readable storage medium

Country Status (1)

Country Link
CN (1) CN112995520B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113744366B (en) * 2021-09-03 2024-04-26 广州卓腾科技有限公司 Credential photo generation method, system and computer readable storage medium
CN113556471B (en) * 2021-09-18 2022-04-12 广州卓腾科技有限公司 Certificate photo generation method, system and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491299B (en) * 2013-09-17 2016-10-05 宇龙计算机通信科技(深圳)有限公司 One is taken pictures treating method and apparatus
CN103795920B (en) * 2014-01-21 2017-06-20 宇龙计算机通信科技(深圳)有限公司 Photo processing method and device
CN105516588A (en) * 2015-12-07 2016-04-20 小米科技有限责任公司 Photographic processing method and device
CN112132218B (en) * 2020-09-23 2024-04-16 平安国际智慧城市科技股份有限公司 Image processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112995520A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US11521423B2 (en) Occlusion detection for facial recognition processes
EP3332403B1 (en) Liveness detection
US10176377B2 (en) Iris liveness detection for mobile devices
US9430709B2 (en) Liveness detection
US20180239955A1 (en) Liveness detection
WO2016180224A1 (en) Method and device for processing image of person
CN112995520B (en) Method and system for quickly shooting certificate photo and readable storage medium
CN108875452A (en) Face identification method, device, system and computer-readable medium
US11804071B2 (en) Method for selecting images in video of faces in the wild
US20210144009A1 (en) Device with biometric system
US11521208B2 (en) System and method for authenticating transactions from a mobile device
US20230041573A1 (en) Image processing method and apparatus, computer device and storage medium
US11783192B2 (en) Hybrid deep learning method for recognizing facial expressions
CN108389053B (en) Payment method, payment device, electronic equipment and readable storage medium
CN113158945A (en) Business processing method, device and equipment based on face recognition and storage medium
WO2023034251A1 (en) Spoof detection based on challenge response analysis
CN110738607A (en) Method, device and equipment for shooting driving license based on artificial intelligence and storage medium
CN113111846A (en) Diagnosis method, device, equipment and storage medium based on face recognition
CN109726613A (en) A kind of method and apparatus for detection
KR101961462B1 (en) Object recognition method and the device thereof
JP4859057B2 (en) Image processing apparatus, image processing method, program, and recording medium
CN112712073A (en) Eye change feature-based living body identification method and device and electronic equipment
WO2020135286A1 (en) Shaping simulation method and system, readable storage medium and device
CN111370100A (en) Face-lifting recommendation method and system based on cloud server
CN113744366B (en) Credential photo generation method, system and computer readable 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