CN113556471A - 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
CN113556471A
CN113556471A CN202111097806.3A CN202111097806A CN113556471A CN 113556471 A CN113556471 A CN 113556471A CN 202111097806 A CN202111097806 A CN 202111097806A CN 113556471 A CN113556471 A CN 113556471A
Authority
CN
China
Prior art keywords
image
reference image
standard
target reference
photo
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
CN202111097806.3A
Other languages
Chinese (zh)
Other versions
CN113556471B (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 CN202111097806.3A priority Critical patent/CN113556471B/en
Publication of CN113556471A publication Critical patent/CN113556471A/en
Application granted granted Critical
Publication of CN113556471B publication Critical patent/CN113556471B/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/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application provides a method and a system for generating a certificate photo and a computer readable storage medium. The certificate photo generation method comprises the following steps: acquiring a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image. The application can improve the convenience degree of taking the standard certificate photo by the user, does not need to specially carry out dressing and dressing processing according with the standard certificate photo, and can improve the user experience.

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
When the identification photo shooting device is used for shooting the identification photo, a user must dress up according to the identification photo standard strictly, for example, the user does not wear jewelry, cannot have too high hairstyle, does not wear beautiful pupils and the like, and the requirements are extremely strict. However, in some special occasions, the user may not be convenient to change the device, and the user cannot shoot the certificate photo anytime and anywhere; the shooting process can not be used for correcting the shooting result, the shooting convenience of the certificate photo is low, and the user experience is not good enough.
In the prior art, CN201910858868.8 discloses an automatic identification photo shooting method and device, which includes monitoring the height of a person to be shot; adjusting the shooting height of the shooting device according to the height of the shot person; the left screen and the right screen of the shooting device synchronously play dynamic pictures, respectively capture the moving line positions of the left eyeball and the right eyeball of a shot person, and lock the positions of the two eyeballs; dynamically adjusting a screen picture, guiding a shot person to migrate a visual focus, correcting the eyeball position and the face form, detecting the eyeball position and the face form of the shot person in real time, and taking a picture when the eyeball position and the face form of the shot person are detected to accord with a shooting rule; and (3) extracting the portrait in the shot photo, fusing the portrait with a preselected background, and cutting the fused image into a certificate photo for automatic typesetting and outputting. Therefore, the above documents mainly correct the eyeballs of the user to achieve the effect of natural photographing, but do not correct the parts of the user that do not meet the photographing standard. In view of the above problems, no effective technical solution exists at present.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and a system for generating a certificate photo, and a computer-readable storage medium, so as to improve the convenience of a user in taking a standard certificate photo, and improve user experience without performing special dressing and decorating processes conforming to the standard certificate photo.
The embodiment of the application also provides a certificate photo generation method, which comprises the following steps:
acquiring a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image;
acquiring a plurality of reference images uploaded by the target user;
matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image;
and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
Optionally, the matching the multiple reference images with the non-standard identification photo image respectively to obtain at least one target reference image includes:
matching each reference image with the non-standard certificate photo respectively, and taking the reference image as an alternative image if the matching degree of the reference image and the non-standard certificate photo is greater than a preset threshold value;
judging whether the area corresponding to the first part in the alternative image meets the standard of a standard certificate photo or not;
and if so, taking the alternative image as a target reference image to obtain at least one target reference image.
Optionally, the matching the multiple reference images with the non-standard identification photo image respectively to obtain at least one target reference image further includes:
and if the number of the target reference images of the same first part is multiple, selecting the target reference image with the highest matching degree with the non-standard identification photo image as a final target reference image corresponding to the first part.
Optionally, the matching the multiple reference images with the non-standard identification photo image respectively to obtain at least one target reference image further includes:
selecting a first target reference image to be used finally from the at least one target reference image, wherein the number of post-supplement areas corresponding to the first part and meeting the certificate photo standard in the first target reference image is the largest;
selecting at least one second target reference image from the remaining at least one target reference image, the second target reference image being used to supplement a complementary region corresponding to the first location that is missing from the first target reference image.
Optionally, the processing each first portion of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image includes:
and processing the corresponding first part of the non-standard identification photo image according to the first target reference image and the second target reference image to obtain a standard identification photo image.
Optionally, before processing the corresponding first portion of the non-standard identification photo image, the method further includes:
acquiring first age information of the non-standard certificate photo image;
acquiring second age information of the first target reference image and the second target reference image;
and processing the first target reference image and the second target reference image according to the second age information and the first age information, so that the ages corresponding to the first target reference image and the second target reference image are matched with the age of the non-standard certificate photo image.
Optionally, before processing the corresponding first portion of the non-standard identification photo image, the method further includes:
acquiring first physiological characteristic information of the non-standard certificate photo image;
acquiring second physiological characteristic information of the first target reference image and the second target reference image;
processing the first target reference image and the second target reference image according to the second physiological characteristic information and the first physiological characteristic information, so that the physiological characteristics corresponding to the first target reference image and the second target reference image are matched with the physiological characteristics of the non-standard identification photo image; the physiological characteristics include skin tone, wrinkle information, hair color information, and facial muscle contour information.
Optionally, the resolution of the reference image is greater than or equal to the resolution of the non-standard identification photograph image.
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 a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image;
acquiring a plurality of reference images uploaded by the target user;
matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image;
and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
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 method and the device for generating the identification photo provided by the embodiment of the application acquire the non-standard identification photo image of the target user acquired by the camera, and identify the first part which does not meet the standard in the non-standard identification photo image; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image; therefore, the convenience of taking the standard certificate photo by the user is improved, dressing and dressing processing according with the standard certificate photo is not required to be specially carried out, and the user experience can be improved.
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 comprises the following steps:
s101, acquiring a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image;
s102, acquiring a plurality of reference images uploaded by the target user;
s103, matching the multiple reference images with the non-standard identification photo images respectively to obtain at least one target reference image;
and S104, processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
In step S101, one or more first portions in the non-standard identification photo image do not meet the standard of the standard identification photo, and therefore, the one or more first portions need to be processed. The non-standard certificate photo image is obtained by acquiring an image of a user by a camera of the certificate photo shooting equipment. Wherein the first part may be that the eyes are not qualified due to the beauty pupil, the hairstyle of the hair is not qualified due to the long hair, or the corresponding first part is not qualified due to the lip nails, the nose rings, etc.
In step S102, the reference images are photos of the user uploaded by the user, and the first portion of the non-standard identification photo image is repaired or processed by selecting an appropriate reference image from the photos as a target reference image.
In step S103, the target reference image is mainly used for the computer to select a post-repair area for repairing or processing the first portion of the non-standard identification photo image. The resolution and the definition of the target reference image are more than or equal to those of the non-standard identification photo image, so that the problem that the identification rate of the non-standard identification photo image is low is solved. Of course, at least a region corresponding to one first region must be present as the target reference image and can be used as a post-compensation region corresponding to the first region, so that the corresponding first region can be subjected to image processing by using the post-compensation region. Therefore, it must be satisfied that the degree of matching with the non-standard identification photograph image is greater than a preset threshold value, which may be 95%, when selecting the target reference image, although it is not limited thereto.
In step S104, after the post-compensation region in each extracted target reference image is appropriately cut, rotated, and color-matched by a common image synthesis method or an image fusion method, the region corresponding to the first portion of the non-standard identification photo image is subjected to image fusion or simple overlay, so that each first portion of the non-standard identification photo image is modified or processed to meet the standard of the identification photo.
In some embodiments, as shown in fig. 2, this step S103 may comprise the following sub-steps: s1031, respectively matching each reference image with the non-standard certificate photo, and taking the reference image as an alternative image if the matching degree of the reference image and the non-standard certificate photo is greater than a preset threshold value; s1032, judging whether the area corresponding to the first part in the alternative image meets the standard of a standard certificate photo or not; and S1033, if the candidate images are consistent with the target reference image, taking the candidate images as the target reference image to obtain at least one target reference image.
The identification photo standard is preset, an area corresponding to each first part is extracted from the alternative image, then the image characteristics of the area are compared with the standard required to be met by the area, and if the standard is met, the alternative image is judged to be a target reference image of the corresponding first part. When comparing the image characteristics of the area with the criteria that the area needs to meet, the method in the prior art or the neural network may be used for the determination.
In some embodiments, this step S103 may further include the following sub-steps: s1034a, if there are a plurality of target reference images corresponding to the same first location, selecting the target reference image with the highest matching degree with the non-standard identification photo image as the final target reference image corresponding to the first location. The final target reference image is an image used for processing the corresponding first portion.
Alternatively, in some embodiments, the step S103 may further include the following sub-steps: s1034b, selecting a first target reference image to be used finally from the at least one target reference image, where the number of post-supplement regions corresponding to the first location in the first target reference image and meeting the certification standards is the largest; selecting at least one second target reference image from the remaining at least one target reference image; the second target reference image is used for supplementing a complementary region corresponding to the first part, which is lacked by the first target reference image.
For example, if there are a total of 5 first locations in the non-standard identification photograph image: a1, A2, A3, A4 and A5. And the selected target reference images are B1, B2, B3 and B4. Among them, B1 includes posterous regions a1, a2, A3, and a4, B2 includes posterous regions a2, B3 includes posterous regions a5, and B4 includes posterous regions a 5. And the degree of matching of the B3 with the non-standard identification photo image is greater than the degree of matching of the B4 with the non-standard identification photo image. Therefore, B1 is selected as the first target reference picture and B3 is selected as the second target reference picture.
In some embodiments, this step S104 may include the following sub-steps: and processing the corresponding first part of the non-standard identification photo image according to the first target reference image and the second target reference image to obtain a standard identification photo image. The scenes are continuously adopted, namely, the A1, A2, A3 and A4 of the non-standard identification photo image are processed by adopting the first target reference image, and the A5 of the non-standard identification photo image is processed by adopting the second target reference image.
In some embodiments, as shown in fig. 3, the step S104 may further include the following sub-steps before processing the corresponding first portion of the non-standard identification photo image: s1041, acquiring first age information of the non-standard identification photo image; s1042, acquiring second age information of the first target reference image and the second target reference image; s1043, processing the first target reference image and the second target reference image according to the second age information and the first age information, so that the corresponding ages of the first target reference image and the second target reference image are matched with the age of the non-standard identification photo image.
The first age information and the second age information may be input by a user or acquired from image generation information. Therefore, in order to improve the recognition degree of the standard certificate image, the corresponding postcompensation regions of each of the first target reference image and the second target reference image need to be processed to match the age of the current year, and then the first target reference image and the second target reference image which are age-matched are used for processing the corresponding first part of the non-standard certificate image by the non-standard certificate image to obtain the standard certificate image, which is beneficial to improving the expression capability of the obtained standard certificate image to users. Processing photos based on age is prior art and therefore need not be described in further detail.
In some embodiments, the step S104 may further include the following sub-steps before processing the corresponding first portion of the non-standard identification photo image: s104a, acquiring first physiological characteristic information of the non-standard certificate photo image; s104b, acquiring second physiological characteristic information of the first target reference image and the second target reference image; s104c, processing the first target reference image and the second target reference image according to the second physiological characteristic information and the first physiological characteristic information, so that the physiological characteristics corresponding to the first target reference image and the second target reference image are matched with the physiological characteristics of the non-standard identification photo image; the physiological characteristic information includes skin color, wrinkle information, hair color information, and facial muscle contour information. For example, the skin color of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the skin color of the corresponding region of the current non-standard certificate photo image, the wrinkle or the texture of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the wrinkle or the texture of the corresponding region of the current non-standard certificate photo image, or the muscle thickness or the contour of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the muscle thickness or the contour of the corresponding region of the current non-standard certificate photo image, then the first target reference image and the second target reference image after physiological feature matching are used for processing the corresponding first part of the non-standard certificate photo image by the non-standard certificate photo image to obtain the standard certificate photo image, the method is favorable for improving the performance of the obtained standard certificate photo image to the user.
As can be seen from the above, in the identification photo generation method provided in the embodiment of the present application, the non-standard identification photo image of the target user, which is acquired by the camera, is obtained, and the first portion that does not meet the standard in the non-standard identification photo image is identified; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image; therefore, the convenience of taking the standard certificate photo by the user is improved, dressing and dressing processing according with the standard certificate photo is not required to be specially carried out, and the user experience can be improved.
As shown in fig. 4, an embodiment of the present application further provides a system for generating a certificate photo, 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 a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
Wherein, one or more first parts in the non-standard certificate photo image do not accord with the standard of the standard certificate photo, therefore, the one or more first parts need to be processed. The non-standard certificate photo image is obtained by acquiring an image of a user by a camera of the certificate photo shooting equipment. Wherein the first part may be that the eyes are not qualified due to the beauty pupil, the hairstyle of the hair is not qualified due to the long hair, or the corresponding first part is not qualified due to the lip nails, the nose rings, etc.
The plurality of reference images are photos of the user uploaded by the user, and a proper reference image is selected from the photos to be used as a target reference image to repair or process the first part of the non-standard certificate photo image.
The target reference image is mainly used for a computer to select a post-repair area so as to repair or process the first part of the non-standard certificate photo image. The resolution and the definition of the target reference image are more than or equal to those of the non-standard identification photo image, so that the problem that the identification rate of the non-standard identification photo image is low is solved. Of course, at least a region corresponding to one first region must be present as the target reference image and can be used as a post-compensation region corresponding to the first region, so that the corresponding first region can be subjected to image processing by using the post-compensation region. Therefore, it must be satisfied that the degree of matching with the non-standard identification photograph image is greater than a preset threshold value, which may be 95%, when selecting the target reference image, although it is not limited thereto.
After the post-compensation area in each extracted target reference image is subjected to appropriate clipping, rotation, color mixing and other processing by a common image synthesis method or an image fusion method, the area corresponding to the first part of the non-standard certificate photo image is subjected to image fusion or simple coverage, and therefore each first part of the non-standard certificate photo image is modified or processed to be in accordance with the standard of the certificate photo.
In some embodiments, the program of the certificate photo generation method, when executed by the processor, implements the steps of: matching each reference image with the non-standard certificate photo respectively, and taking the reference image as an alternative image if the matching degree of the reference image and the non-standard certificate photo is greater than a preset threshold value; judging whether the area corresponding to the first part in the alternative image meets the standard of a standard certificate photo or not; and if so, taking the alternative image as a target reference image to obtain at least one target reference image.
The identification photo standard is preset, an area corresponding to each first part is extracted from the alternative image, then the image characteristics of the area are compared with the standard required to be met by the area, and if the standard is met, the alternative image is judged to be a target reference image of the corresponding first part. When comparing the image characteristics of the area with the criteria that the area needs to meet, the method in the prior art or the neural network may be used for the determination.
In some embodiments, the program of the certificate photo generation method, when executed by the processor, implements the steps of: and if the number of the target reference images of the same first part is multiple, selecting the target reference image with the highest matching degree with the non-standard identification photo image as a final target reference image corresponding to the first part. The final target reference image is an image used for processing the corresponding first portion.
Alternatively, in some embodiments, the program of the certificate photo generation method realizes the following steps when executed by the processor: selecting a first target reference image to be used finally from the at least one target reference image, wherein the number of post-supplement areas corresponding to the first part and meeting the certificate photo standard in the first target reference image is the largest; selecting at least one second target reference image from the remaining at least one target reference image, the second target reference image being used to supplement a complementary region corresponding to the first location that is missing from the first target reference image.
For example, if there are a total of 5 first locations in the non-standard identification photograph image: a1, A2, A3, A4 and A5. And the selected target reference images are B1, B2, B3 and B4. Among them, B1 includes posterous regions a1, a2, A3, and a4, B2 includes posterous regions a2, B3 includes posterous regions a5, and B4 includes posterous regions a 5. And the degree of matching of the B3 with the non-standard identification photo image is greater than the degree of matching of the B4 with the non-standard identification photo image. Therefore, B1 is selected as the first target reference picture and B3 is selected as the second target reference picture.
In some embodiments, the program of the certificate photo generation method, when executed by the processor, implements the steps of: and processing the corresponding first part of the non-standard identification photo image according to the first target reference image and the second target reference image to obtain a standard identification photo image. The scenes are continuously adopted, namely, the A1, A2, A3 and A4 of the non-standard identification photo image are processed by adopting the first target reference image, and the A5 of the non-standard identification photo image is processed by adopting the second target reference image.
In some embodiments, the program of the method of generating a certificate photo is executed by the processor to obtain first age information of the non-standard certificate photo image before processing the corresponding first part of the non-standard certificate photo; acquiring second age information of the first target reference image and the second target reference image; and processing the first target reference image and the second target reference image according to the second age information and the first age information, so that the ages corresponding to the first target reference image and the second target reference image are matched with the age of the non-standard certificate photo image.
The first age information and the second age information may be input by a user or acquired from image generation information. Therefore, in order to improve the recognition degree of the standard certificate image, the corresponding postcompensation regions of each of the first target reference image and the second target reference image need to be processed to match the age of the current year, and then the first target reference image and the second target reference image which are age-matched are used for processing the corresponding first part of the non-standard certificate image by the non-standard certificate image to obtain the standard certificate image, which is beneficial to improving the expression capability of the obtained standard certificate image to users. Processing photos based on age is prior art and therefore need not be described in further detail.
In some embodiments, the program of the certificate photo generation method, when executed by the processor, implements the steps of: before processing a corresponding first part of the non-standard certificate photo image, acquiring first physiological characteristic information of the non-standard certificate photo image; acquiring second physiological characteristic information of the first target reference image and the second target reference image; processing the first target reference image and the second target reference image according to the second physiological characteristic information and the first physiological characteristic information, so that the physiological characteristics corresponding to the first target reference image and the second target reference image are matched with the physiological characteristics of the non-standard identification photo image; the physiological characteristic information includes skin color, wrinkle information, hair color information, and facial muscle contour information. For example, the skin color of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the skin color of the corresponding region of the current non-standard certificate photo image, the wrinkle or the texture of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the wrinkle or the texture of the corresponding region of the current non-standard certificate photo image, or the muscle thickness or the contour of the complementary region in the first target reference image and the second target reference image is adjusted to be the same as the muscle thickness or the contour of the corresponding region of the current non-standard certificate photo image, then the first target reference image and the second target reference image after physiological feature matching are used for processing the corresponding first part of the non-standard certificate photo image by the non-standard certificate photo image to obtain the standard certificate photo image, the method is favorable for improving the performance of the obtained standard certificate photo image to the user.
As can be seen from the above, the system for generating a certificate photo provided in the embodiment of the present application acquires a non-standard certificate photo image of a target user collected by a camera, and identifies a first portion that does not meet a standard in the non-standard certificate photo image; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image; therefore, the convenience of taking the standard certificate photo by the user is improved, dressing and dressing processing according with the standard certificate photo is not required to be specially carried out, and the user experience can be improved.
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 steps of the certificate photo generation method described in any of the above embodiments are implemented. The method specifically comprises the following steps: acquiring a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image; acquiring a plurality of reference images uploaded by the target user; matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image; processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image; therefore, the convenience of taking the standard certificate photo by the user is improved, dressing and dressing processing according with the standard certificate photo is not required to be specially carried out, and the user experience can be improved.
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 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 is characterized by comprising the following steps:
acquiring a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image;
acquiring a plurality of reference images uploaded by the target user;
matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image;
and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
2. The method of claim 1, wherein the matching the plurality of reference images with the non-standard identification photograph image to obtain at least one target reference image comprises:
matching each reference image with the non-standard certificate photo respectively, and taking the reference image as an alternative image if the matching degree of the reference image and the non-standard certificate photo is greater than a preset threshold value;
judging whether the area corresponding to the first part in the alternative image meets the standard of a standard certificate photo or not;
and if so, taking the alternative image as a target reference image to obtain at least one target reference image.
3. The method of claim 2, wherein the matching the plurality of reference images with the non-standard identification photograph image to obtain at least one target reference image, further comprises:
and if the number of the target reference images of the same first part is multiple, selecting the target reference image with the highest matching degree with the non-standard identification photo image as a final target reference image corresponding to the first part.
4. The method of claim 2, wherein the matching the plurality of reference images with the non-standard identification photograph image to obtain at least one target reference image, further comprises:
selecting a first target reference image to be used finally from the at least one target reference image, wherein the number of post-supplement areas corresponding to the first part and meeting the certificate photo standard in the first target reference image is the largest;
selecting at least one second target reference image from the remaining at least one target reference image, the second target reference image being used to supplement a complementary region corresponding to the first location that is missing from the first target reference image.
5. The method of claim 4, wherein processing each first portion of the non-standard identification photograph image according to the at least one target reference image to obtain a standard identification photograph image comprises:
and processing the corresponding first part of the non-standard identification photo image according to the first target reference image and the second target reference image to obtain a standard identification photo image.
6. The method of claim 5, further comprising, prior to processing the corresponding first portion of the non-standard identification photograph image:
acquiring first age information of the non-standard certificate photo image;
acquiring second age information of the first target reference image and the second target reference image;
and processing the first target reference image and the second target reference image according to the second age information and the first age information, so that the ages corresponding to the first target reference image and the second target reference image are matched with the age of the non-standard certificate photo image.
7. The method of claim 5, further comprising, prior to processing the corresponding first portion of the non-standard identification photograph image:
acquiring first physiological characteristic information of the non-standard certificate photo image;
acquiring second physiological characteristic information of the first target reference image and the second target reference image;
processing the first target reference image and the second target reference image according to the second physiological characteristic information and the first physiological characteristic information, so that the physiological characteristics corresponding to the first target reference image and the second target reference image are matched with the physiological characteristics of the non-standard identification photo image; the physiological characteristics include skin tone, wrinkle information, hair color information, and facial muscle contour information.
8. The method of generating a certificate photo as claimed in claim 1, characterized in that the resolution of the reference image is greater than or equal to the resolution of the non-standard certificate photo image.
9. 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 a non-standard certificate photo image of a target user acquired by a camera, and identifying a first part which does not accord with a standard in the non-standard certificate photo image;
acquiring a plurality of reference images uploaded by the target user;
matching the plurality of reference images with the non-standard identification photo images respectively to obtain at least one target reference image;
and processing each first part of the non-standard identification photo image according to the at least one target reference image to obtain a standard identification photo image.
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 8.
CN202111097806.3A 2021-09-18 2021-09-18 Certificate photo generation method, system and computer readable storage medium Active CN113556471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111097806.3A CN113556471B (en) 2021-09-18 2021-09-18 Certificate photo generation method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111097806.3A CN113556471B (en) 2021-09-18 2021-09-18 Certificate photo generation method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113556471A true CN113556471A (en) 2021-10-26
CN113556471B CN113556471B (en) 2022-04-12

Family

ID=78106386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111097806.3A Active CN113556471B (en) 2021-09-18 2021-09-18 Certificate photo generation method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113556471B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041443A (en) * 2023-10-09 2023-11-10 人力资源和社会保障部人事考试中心 Offline photo processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005031235A (en) * 2003-07-09 2005-02-03 Fujicolor Imaging Service Co Ltd Photographic apparatus
CN105120167A (en) * 2015-08-31 2015-12-02 广州市幸福网络技术有限公司 Certificate picture camera and certificate picture photographing method
CN107507217A (en) * 2017-08-17 2017-12-22 北京觅己科技有限公司 Preparation method, device and the storage medium of certificate photo
CN112995520A (en) * 2021-04-16 2021-06-18 广州卓腾科技有限公司 Method and system for quickly shooting certificate photo and readable storage medium
CN113392769A (en) * 2021-06-16 2021-09-14 广州繁星互娱信息科技有限公司 Face image synthesis method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005031235A (en) * 2003-07-09 2005-02-03 Fujicolor Imaging Service Co Ltd Photographic apparatus
CN105120167A (en) * 2015-08-31 2015-12-02 广州市幸福网络技术有限公司 Certificate picture camera and certificate picture photographing method
CN107507217A (en) * 2017-08-17 2017-12-22 北京觅己科技有限公司 Preparation method, device and the storage medium of certificate photo
CN112995520A (en) * 2021-04-16 2021-06-18 广州卓腾科技有限公司 Method and system for quickly shooting certificate photo and readable storage medium
CN113392769A (en) * 2021-06-16 2021-09-14 广州繁星互娱信息科技有限公司 Face image synthesis method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041443A (en) * 2023-10-09 2023-11-10 人力资源和社会保障部人事考试中心 Offline photo processing method, device and storage medium
CN117041443B (en) * 2023-10-09 2023-12-08 人力资源和社会保障部人事考试中心 Offline photo processing method, device and storage medium

Also Published As

Publication number Publication date
CN113556471B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
KR102669014B1 (en) Systems and methods for image de-identification
Matern et al. Exploiting visual artifacts to expose deepfakes and face manipulations
Rathgeb et al. Impact and detection of facial beautification in face recognition: An overview
Shih et al. Style transfer for headshot portraits
US8983152B2 (en) Image masks for face-related selection and processing in images
CN109952594B (en) Image processing method, device, terminal and storage medium
WO2019019828A1 (en) Target object occlusion detection method and apparatus, electronic device and storage medium
CN109598210B (en) Picture processing method and device
WO2021036314A1 (en) Facial image processing method and apparatus, image device, and storage medium
CN106682632B (en) Method and device for processing face image
CN110390632B (en) Image processing method and device based on dressing template, storage medium and terminal
CN108829900A (en) A kind of Research on face image retrieval based on deep learning, device and terminal
CN109934062A (en) Training method, face identification method, device and the equipment of eyeglasses removal model
US9619732B2 (en) Generating compositions
KR101700818B1 (en) Method and apparatus for estimating age or gender using face image
US10586098B2 (en) Biometric method
US20230041573A1 (en) Image processing method and apparatus, computer device and storage medium
CN113556471B (en) Certificate photo generation method, system and computer readable storage medium
CN105931204B (en) Picture restoring method and system
US11341612B1 (en) Method and system for automatic correction and generation of facial images
Yu et al. Diff-ID: An Explainable Identity Difference Quantification Framework for DeepFake Detection
CN112907438B (en) Portrait generation method and device, electronic equipment and storage medium
CN113837019B (en) Cosmetic progress detection method, device, equipment and storage medium
JP2020107038A (en) Information processing apparatus, information processing method, and program
CN114972014A (en) Image processing method and device and electronic equipment

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