CN117095446B - Cloud database-based instant license generation and verification method, system and medium - Google Patents

Cloud database-based instant license generation and verification method, system and medium Download PDF

Info

Publication number
CN117095446B
CN117095446B CN202311333923.4A CN202311333923A CN117095446B CN 117095446 B CN117095446 B CN 117095446B CN 202311333923 A CN202311333923 A CN 202311333923A CN 117095446 B CN117095446 B CN 117095446B
Authority
CN
China
Prior art keywords
image
area
license
preset
head portrait
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
CN202311333923.4A
Other languages
Chinese (zh)
Other versions
CN117095446A (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 CN202311333923.4A priority Critical patent/CN117095446B/en
Publication of CN117095446A publication Critical patent/CN117095446A/en
Application granted granted Critical
Publication of CN117095446B publication Critical patent/CN117095446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/761Proximity, similarity or dissimilarity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/776Validation; Performance evaluation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/80Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides a cloud database-based instantaneous license generation and verification method, a cloud database-based instantaneous license generation and verification system and a cloud database-based instantaneous license verification medium, wherein the method comprises the following steps: collecting a user head portrait photo, extracting facial area image characteristics, and comparing the facial area image characteristics with preset standard characteristics to obtain a deviation rate; judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value; if the image set facial features are larger than or equal to the face region image features, extracting the successfully matched image set facial features, and fusing the image set facial features with the face region image features to generate a license image; if the generated license image is smaller than the generated license image, directly generating the license image; performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal; the face area image is obtained by photographing the user, the face area image characteristics are analyzed, and the fusion verification is carried out on the image set in the cloud database and the face area image obtained by photographing, so that license generation is carried out rapidly, and the license generation efficiency is improved.

Description

Cloud database-based instant license generation and verification method, system and medium
Technical Field
The application relates to the field of rapid generation of certificates, in particular to a cloud database-based instantaneous certificate generation and verification method, system and medium.
Background
At present, the certificate photograph is made, which is mainly obtained by photographing on self-help certificate handling equipment, but the actual conditions are as follows: because the certificate is provided with special requirements, a plurality of limitations are caused when a person taking the certificate takes a photograph, such as the condition that the definition of facial features is influenced due to light rays or photographing angles in the photographing process, and the condition that the requirements are not met or multiple photographing is caused, in the existing certificate generation method, a field photographing picture cannot be matched with an image set stored in a cloud database, and feature complement and image fusion are performed on the field photographing picture, so that the definition of the certificate is poor, and aiming at the problems, an effective technical scheme is needed.
Disclosure of Invention
An object of the embodiment of the present application is to provide a method, a system and a medium for generating and verifying an instant license based on a cloud database, which can acquire a face area image by photographing a user, analyze the characteristics of the face area image, and fuse and verify an image set in the cloud database with the face area image acquired by photographing, so that the generation of the license is rapidly performed, and the generation efficiency of the license is improved.
The embodiment of the application also provides a cloud database-based instant license generation and verification method, which comprises the following steps:
collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image;
if the generated license image is smaller than the generated license image, directly generating the license image;
and carrying out definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal.
Optionally, in the method for generating and verifying the transient license based on the cloud database according to the embodiment of the present application, before collecting the head portrait photograph of the user and preprocessing the head portrait photograph, the method further includes:
collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
calculating the gray level of the head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
correcting the edge line of the head portrait area according to the first gray level deviation;
calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
and correcting the edge line of the background area according to the second gray level deviation.
Optionally, in the method for generating and verifying the transient license based on the cloud database according to the embodiment of the present application, a head portrait photo of a user is collected, and the head portrait photo is preprocessed to obtain a face area image, which specifically includes:
acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information;
and if the image is smaller than the preset value, acquiring a face area image.
Optionally, in the method for generating and verifying an instant license based on a cloud database according to the embodiment of the present application, extracting facial features of an image set successfully matched, and fusing the facial features of the image set with facial region image features to generate a license image, including:
acquiring facial region image features and image set facial features;
comparing the facial region image features with the facial features of the image set to obtain feature similarity;
if the feature similarity is larger than a preset similarity threshold, judging that feature matching is successful;
if the feature similarity is smaller than a preset similarity threshold, judging that feature matching fails;
comparing the facial region image characteristics with preset image characteristics to obtain a characteristic deviation rate;
judging whether the characteristic deviation rate is larger than or equal to a preset characteristic deviation rate;
if the face image feature is more than or equal to the face image feature, judging the corresponding face image feature as a dead point, and carrying out face image feature completion according to the face features of the successfully matched image set;
if the generated license image is smaller than the generated license image.
Optionally, in the method for generating and verifying an instant license based on a cloud database according to the embodiment of the present application, the definition verification is performed on the license image, so as to obtain a verification result, and the verification result is transmitted to the terminal, where the method specifically includes:
obtaining a license image and calculating image pixels;
acquiring definition of a certificate image according to image pixels;
comparing the definition of the certificate image with a preset definition threshold;
if the definition of the certificate image is smaller than a preset definition threshold, generating a first verification result, acquiring a fuzzy area of the certificate image according to the first verification result, and marking the fuzzy area;
if the definition of the certificate image is larger than a preset definition threshold, generating a second verification result;
and respectively transmitting the first verification result and the second verification result to the terminal.
Optionally, in the method for generating and verifying an instant license based on a cloud database according to the embodiment of the present application, after generating the second verification result, if the sharpness of the certificate image is greater than a preset sharpness threshold, the method further includes:
acquiring a certificate image, extracting facial features, textures and skin colors, and generating facial region color information;
comparing the facial region color information with preset color information to obtain a color deviation rate;
judging whether the color deviation rate is larger than or equal to a preset color deviation rate threshold value;
if the color migration information is greater than or equal to the color migration information, generating color migration information, and optimizing the color of the facial area according to the color migration information;
if the certificate image verification is smaller than the preset value, the certificate image verification is judged to be passed.
In a second aspect, an embodiment of the present application provides a system for generating and verifying an instant license based on a cloud database, where the system includes: the cloud database-based transient license generation and verification method comprises a memory and a processor, wherein the memory comprises a cloud database-based transient license generation and verification method program, and the cloud database-based transient license generation and verification method program realizes the following steps when being executed by the processor:
collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image;
if the generated license image is smaller than the generated license image, directly generating the license image;
and carrying out definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal.
Optionally, in the cloud database-based transient license generation and verification system according to the embodiment of the present application, before collecting a user head portrait photo and preprocessing the head portrait photo, the method further includes:
collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
calculating the gray level of the head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
correcting the edge line of the head portrait area according to the first gray level deviation;
calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
and correcting the edge line of the background area according to the second gray level deviation.
Optionally, in the cloud database-based transient license generation and verification system according to the embodiment of the present application, a user head portrait photo is collected, and the head portrait photo is preprocessed to obtain a face area image, which specifically includes:
acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information;
and if the image is smaller than the preset value, acquiring a face area 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 cloud database-based transient license generation and verification method program, where when the cloud database-based transient license generation and verification method program is executed by a processor, the steps of the cloud database-based transient license generation and verification method described in any one of the foregoing embodiments are implemented.
As can be seen from the above, according to the method, the system and the medium for generating and verifying the instant license based on the cloud database provided by the embodiment of the application, the face area image is obtained by collecting the head portrait photo of the user and preprocessing the head portrait photo; extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate; judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value; if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image; if the generated license image is smaller than the generated license image, directly generating the license image; performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal; the face area image is obtained by photographing the user, the face area image characteristics are analyzed, and the fusion verification is carried out on the image set in the cloud database and the face area image obtained by photographing, so that license generation is carried out rapidly, and the license generation efficiency is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, the claims, and the drawings, as well as the objects and advantages of the application may be realized and obtained by means of the instrumentalities particularly pointed out in the written description, claims, and drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed 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 should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for generating and verifying an instant license based on a cloud database according to an embodiment of the present application;
fig. 2 is a flowchart for correcting edge lines of a user photograph of an instant license generating and verifying method based on a cloud database according to an embodiment of the present application;
fig. 3 is a flowchart of analysis of brightness deviation of a user head portrait picture of an instant license generation and verification method based on a cloud database according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance. It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating and verifying an instant license based on a cloud database according to some embodiments of the present application. The cloud database-based instant license generation and verification method is used in terminal equipment and comprises the following steps:
s101, collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
s102, extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
s103, judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
s104, if the image is greater than or equal to the facial feature, matching the user head portrait photo with the image set stored in the cloud database, extracting the facial feature of the successfully matched image set, and fusing the facial feature of the image set with the facial region image feature to generate a license image;
and S105, if the verification result is smaller than the preset threshold, directly generating a license image, performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal.
The method is characterized in that the on-site photographed image is matched with the image set stored in the cloud database, and the on-site photographed image is subjected to feature complementation and image fusion, so that the definition of the license is improved, and meanwhile, the license can be rapidly generated.
Referring to fig. 2, fig. 2 is a flowchart of user photo edge line correction of a method for generating and verifying an instant license based on a cloud database according to some embodiments of the present application. According to the embodiment of the invention, before the user head portrait photo is collected and preprocessed, the method further comprises the following steps:
s201, collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
s202, calculating the gray level of a head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
s203, correcting the edge line of the head portrait area according to the first gray level deviation;
s204, calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
s205, correcting the edge line of the background area according to the second gray level deviation.
It should be noted that, edge line extraction is performed on the face boundary in the user head portrait picture and other areas except the face through an edge detection algorithm, and the background area and the head portrait area are distinguished according to the edge line, so that the interference of the background area can be removed in the license generation process, only the head portrait area is analyzed, the data analysis efficiency is improved, and the license can be generated instantaneously.
Referring to fig. 3, fig. 3 is a flowchart of a user head portrait picture brightness deviation analysis of a method for generating and verifying an instant license based on a cloud database according to some embodiments of the present application. According to the embodiment of the invention, the head portrait photo of the user is collected, and is preprocessed to obtain the face area image, specifically:
s301, acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
s302, acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
s303, comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
s304, judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
s305, if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information; and if the image is smaller than the preset value, acquiring a face area image.
In addition, in the process of carrying out brightness analysis on the sub-area cams, judging whether a highlight area exists in a corresponding sub-area or not by judging the deviation of brightness and a brightness threshold value, if the highlight area or the highlight point exists, judging that the area can cause too strong brightness or too dark in the license generation process, and affecting the acquisition and generation of facial features of the area, so that the facial features of the area do not meet the requirements.
According to the embodiment of the invention, the facial features of the image set which are successfully matched are extracted, and the facial features of the image set and the facial region image features are fused to generate the license image, which comprises the following steps:
acquiring facial region image features and image set facial features;
comparing the facial region image features with the facial features of the image set to obtain feature similarity;
if the feature similarity is larger than a preset similarity threshold, judging that feature matching is successful;
if the feature similarity is smaller than a preset similarity threshold, judging that feature matching fails;
comparing the facial region image characteristics with preset image characteristics to obtain a characteristic deviation rate;
judging whether the characteristic deviation rate is larger than or equal to a preset characteristic deviation rate;
if the face image feature is more than or equal to the face image feature, judging the corresponding face image feature as a dead point, and carrying out face image feature completion according to the face features of the successfully matched image set;
if the generated license image is smaller than the generated license image.
The facial region image characteristics during on-site photographing are judged, and the characteristics are analyzed and compared with the facial characteristics of the image set, so that the matching of the facial region image characteristics and the facial characteristics of other people can be ensured, the facial characteristics of the other people can not be completed to the face of the user during the characteristic completion, and the generation precision of the license image characteristics is improved.
According to the embodiment of the invention, the definition verification is carried out on the license image to obtain a verification result, and the verification result is transmitted to the terminal, specifically:
obtaining a license image and calculating image pixels;
acquiring definition of a certificate image according to image pixels;
comparing the definition of the certificate image with a preset definition threshold;
if the definition of the certificate image is smaller than a preset definition threshold, generating a first verification result, acquiring a fuzzy area of the certificate image according to the first verification result, and marking the fuzzy area;
if the definition of the certificate image is larger than a preset definition threshold, generating a second verification result;
and respectively transmitting the first verification result and the second verification result to the terminal.
After the license is generated, the definition of the license is verified, so that the license can clearly reflect the facial features of the user, and the license can meet the warehousing requirement when being warehoused, and the risk of re-shooting by the user is reduced.
According to the embodiment of the invention, if the definition of the certificate image is greater than the preset definition threshold, after generating the second verification result, the method further comprises the following steps:
acquiring a certificate image, extracting facial features, textures and skin colors, and generating facial region color information;
comparing the facial region color information with preset color information to obtain a color deviation rate;
judging whether the color deviation rate is larger than or equal to a preset color deviation rate threshold value;
if the color migration information is greater than or equal to the color migration information, generating color migration information, and optimizing the color of the facial area according to the color migration information;
if the certificate image verification is smaller than the preset value, the certificate image verification is judged to be passed.
It should be noted that, in the photographing process, due to the problems of light and photographing angle, the face color reacted on the license can deviate, whether the deviation meets the requirement is judged, if not, the face color is analyzed and compared, the color is migrated, and the verification passing rate of the license is improved.
According to the embodiment of the invention, a certificate image is acquired, facial features, textures and skin colors are extracted, and facial region color information is generated, and the method further comprises the steps of:
acquiring a face area, establishing a reference point for the face area according to five sense organs, and respectively acquiring the color of the area in a preset range of each center by taking ears, noses, mouths and eyes as centers;
generating a circular area from the areas in the preset range of each center, and calculating the radius of the circular area and the color value in the circular area;
extending the radius value, generating an outer annular region which is not overlapped with the circular region, and collecting color values in the outer annular region;
comparing the color value in the circular area with the color value in the outer annular area to obtain color difference;
and generating color correction information according to the chromatic aberration, and adjusting the color value in the corresponding circular area or annular area according to the color correction information.
The color value deviation of the outer area is judged and adjusted by analyzing the color values in the circular area with the ears, the noses, the mouths and the eyes as the center, so that the color value deviation in the adjacent area is smaller, color jump is prevented, and the color smoothness of the license is improved.
In a second aspect, an embodiment of the present application provides a system for generating and verifying an instant license based on a cloud database, where the system includes: the memory comprises a program of the cloud database-based instant license generation and verification method, and the program of the cloud database-based instant license generation and verification method realizes the following steps when being executed by the processor:
collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image;
if the generated license image is smaller than the generated license image, directly generating the license image;
and carrying out definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal.
The method is characterized in that the on-site photographed image is matched with the image set stored in the cloud database, and the on-site photographed image is subjected to feature complementation and image fusion, so that the definition of the license is improved, and meanwhile, the license can be rapidly generated.
According to the embodiment of the invention, before the user head portrait photo is collected and preprocessed, the method further comprises the following steps:
collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
calculating the gray level of the head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
correcting the edge line of the head portrait area according to the first gray level deviation;
calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
and correcting the edge line of the background area according to the second gray level deviation.
It should be noted that, edge line extraction is performed on the face boundary in the user head portrait picture and other areas except the face through an edge detection algorithm, and the background area and the head portrait area are distinguished according to the edge line, so that the interference of the background area can be removed in the license generation process, only the head portrait area is analyzed, the data analysis efficiency is improved, and the license can be generated instantaneously.
According to the embodiment of the invention, the head portrait photo of the user is collected, and is preprocessed to obtain the face area image, specifically:
acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information;
and if the image is smaller than the preset value, acquiring a face area image.
In addition, in the process of carrying out brightness analysis on the sub-area cams, judging whether a highlight area exists in a corresponding sub-area or not by judging the deviation of brightness and a brightness threshold value, if the highlight area or the highlight point exists, judging that the area can cause too strong brightness or too dark in the license generation process, and affecting the acquisition and generation of facial features of the area, so that the facial features of the area do not meet the requirements.
According to the embodiment of the invention, the facial features of the image set which are successfully matched are extracted, and the facial features of the image set and the facial region image features are fused to generate the license image, which comprises the following steps:
acquiring facial region image features and image set facial features;
comparing the facial region image features with the facial features of the image set to obtain feature similarity;
if the feature similarity is larger than a preset similarity threshold, judging that feature matching is successful;
if the feature similarity is smaller than a preset similarity threshold, judging that feature matching fails;
comparing the facial region image characteristics with preset image characteristics to obtain a characteristic deviation rate;
judging whether the characteristic deviation rate is larger than or equal to a preset characteristic deviation rate;
if the face image feature is more than or equal to the face image feature, judging the corresponding face image feature as a dead point, and carrying out face image feature completion according to the face features of the successfully matched image set;
if the generated license image is smaller than the generated license image.
The facial region image characteristics during on-site photographing are judged, and the characteristics are analyzed and compared with the facial characteristics of the image set, so that the matching of the facial region image characteristics and the facial characteristics of other people can be ensured, the facial characteristics of the other people can not be completed to the face of the user during the characteristic completion, and the generation precision of the license image characteristics is improved.
According to the embodiment of the invention, the definition verification is carried out on the license image to obtain a verification result, and the verification result is transmitted to the terminal, specifically:
obtaining a license image and calculating image pixels;
acquiring definition of a certificate image according to image pixels;
comparing the definition of the certificate image with a preset definition threshold;
if the definition of the certificate image is smaller than a preset definition threshold, generating a first verification result, acquiring a fuzzy area of the certificate image according to the first verification result, and marking the fuzzy area;
if the definition of the certificate image is larger than a preset definition threshold, generating a second verification result;
and respectively transmitting the first verification result and the second verification result to the terminal.
After the license is generated, the definition of the license is verified, so that the license can clearly reflect the facial features of the user, and the license can meet the warehousing requirement when being warehoused, and the risk of re-shooting by the user is reduced.
According to the embodiment of the invention, if the definition of the certificate image is greater than the preset definition threshold, after generating the second verification result, the method further comprises the following steps:
acquiring a certificate image, extracting facial features, textures and skin colors, and generating facial region color information;
comparing the facial region color information with preset color information to obtain a color deviation rate;
judging whether the color deviation rate is larger than or equal to a preset color deviation rate threshold value;
if the color migration information is greater than or equal to the color migration information, generating color migration information, and optimizing the color of the facial area according to the color migration information;
if the certificate image verification is smaller than the preset value, the certificate image verification is judged to be passed.
It should be noted that, in the photographing process, due to the problems of light and photographing angle, the face color reacted on the license can deviate, whether the deviation meets the requirement is judged, if not, the face color is analyzed and compared, the color is migrated, and the verification passing rate of the license is improved.
According to the embodiment of the invention, a certificate image is acquired, facial features, textures and skin colors are extracted, and facial region color information is generated, and the method further comprises the steps of:
acquiring a face area, establishing a reference point for the face area according to five sense organs, and respectively acquiring the color of the area in a preset range of each center by taking ears, noses, mouths and eyes as centers;
generating a circular area from the areas in the preset range of each center, and calculating the radius of the circular area and the color value in the circular area;
extending the radius value, generating an outer annular region which is not overlapped with the circular region, and collecting color values in the outer annular region;
comparing the color value in the circular area with the color value in the outer annular area to obtain color difference;
and generating color correction information according to the chromatic aberration, and adjusting the color value in the corresponding circular area or annular area according to the color correction information.
The color value deviation of the outer area is judged and adjusted by analyzing the color values in the circular area with the ears, the noses, the mouths and the eyes as the center, so that the color value deviation in the adjacent area is smaller, color jump is prevented, and the color smoothness of the license is improved.
A third aspect of the present invention provides a computer-readable storage medium, the readable storage medium including a cloud database-based transient license generation and verification method program, which when executed by a processor, implements the steps of the cloud database-based transient license generation and verification method as in any one of the above.
The invention discloses a cloud database-based instantaneous license generation and verification method, a cloud database-based instantaneous license generation and verification system and a cloud database-based instantaneous license verification medium, wherein a face area image is obtained by collecting a head portrait photo of a user and preprocessing the head portrait photo; extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate; judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value; if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image; if the generated license image is smaller than the generated license image, directly generating the license image; performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal; and acquiring a face area image by photographing a user, analyzing the features of the face area image, and carrying out fusion verification on an image set in a cloud database and the face area image acquired by photographing, so that license generation is carried out rapidly, and the license generation efficiency is improved.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of units is only one logical function division, and there may be other divisions 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 performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) 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, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.

Claims (6)

1. The method for generating and verifying the instant license based on the cloud database is characterized by comprising the following steps of:
collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image;
if the generated license image is smaller than the generated license image, directly generating the license image;
performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal;
before the user head portrait photo is collected and preprocessed, the method further comprises the following steps:
collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
calculating the gray level of the head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
correcting the edge line of the head portrait area according to the first gray level deviation;
calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
correcting the edge line of the background area according to the second gray level deviation;
collecting a head portrait photo of a user, preprocessing the head portrait photo, and obtaining a face area image, wherein the head portrait photo comprises the following specific steps of:
acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information;
if the face area is smaller than the preset value, acquiring a face area image;
acquiring a certificate image, extracting facial features, textures and skin colors, generating facial region color information, and further comprising:
acquiring a face area, establishing a reference point for the face area according to five sense organs, and respectively acquiring the color of the area in a preset range of each center by taking ears, noses, mouths and eyes as centers;
generating a circular area from the areas in the preset range of each center, and calculating the radius of the circular area and the color value in the circular area;
extending the radius value, generating an outer annular region which is not overlapped with the circular region, and collecting color values in the outer annular region;
comparing the color value in the circular area with the color value in the outer annular area to obtain color difference;
and generating color correction information according to the chromatic aberration, and adjusting the color value in the corresponding circular area or annular area according to the color correction information.
2. The cloud database-based instant license generation and verification method according to claim 1, wherein the method comprises extracting facial features of an image set successfully matched, and fusing the facial features of the image set with facial region image features to generate a license image, and specifically comprises:
acquiring facial region image features and image set facial features;
comparing the facial region image features with the facial features of the image set to obtain feature similarity;
if the feature similarity is larger than a preset similarity threshold, judging that feature matching is successful;
if the feature similarity is smaller than a preset similarity threshold, judging that feature matching fails;
comparing the facial region image characteristics with preset image characteristics to obtain a characteristic deviation rate;
judging whether the characteristic deviation rate is larger than or equal to a preset characteristic deviation rate;
if the face image feature is more than or equal to the face image feature, judging the corresponding face image feature as a dead point, and carrying out face image feature completion according to the face features of the successfully matched image set;
if the generated license image is smaller than the generated license image.
3. The cloud database-based instant license generation and verification method according to claim 2, wherein the license image is subjected to definition verification to obtain a verification result, and the verification result is transmitted to a terminal, specifically:
obtaining a license image and calculating image pixels;
acquiring definition of a certificate image according to image pixels;
comparing the definition of the certificate image with a preset definition threshold;
if the definition of the certificate image is smaller than a preset definition threshold, generating a first verification result, acquiring a fuzzy area of the certificate image according to the first verification result, and marking the fuzzy area;
if the definition of the certificate image is larger than a preset definition threshold, generating a second verification result;
and respectively transmitting the first verification result and the second verification result to the terminal.
4. The cloud database-based transient license generation and verification method of claim 3, further comprising, after generating the second verification result if the sharpness of the document image is greater than a preset sharpness threshold:
acquiring a certificate image, extracting facial features, textures and skin colors, and generating facial region color information;
comparing the facial region color information with preset color information to obtain a color deviation rate;
judging whether the color deviation rate is larger than or equal to a preset color deviation rate threshold value;
if the color migration information is greater than or equal to the color migration information, generating color migration information, and optimizing the color of the facial area according to the color migration information;
if the certificate image verification is smaller than the preset value, the certificate image verification is judged to be passed.
5. A cloud database-based transient license generation and verification system, comprising: the cloud database-based transient license generation and verification method comprises a memory and a processor, wherein the memory comprises a cloud database-based transient license generation and verification method program, and the cloud database-based transient license generation and verification method program realizes the following steps when being executed by the processor:
collecting a head portrait photo of a user, and preprocessing the head portrait photo to obtain a face area image;
extracting facial region image features, and comparing the facial region image features with preset standard features to obtain a deviation rate;
judging whether the deviation rate is larger than or equal to a preset deviation rate threshold value;
if the face feature is larger than or equal to the face feature, matching the user head portrait photo with an image set stored in a cloud database, extracting the face feature of the successfully matched image set, and fusing the face feature of the image set with the face region image feature to generate a license image;
if the generated license image is smaller than the generated license image, directly generating the license image;
performing definition verification on the license image to obtain a verification result, and transmitting the verification result to the terminal;
before the user head portrait photo is collected and preprocessed, the method further comprises the following steps:
collecting a user head portrait photo, extracting edge lines of the user head portrait photo through an edge detection algorithm, and generating a background area and a head portrait area;
calculating the gray level of the head portrait area, and comparing the gray level of the head portrait area with a preset first gray level threshold value to obtain a first gray level deviation;
correcting the edge line of the head portrait area according to the first gray level deviation;
calculating the gray level of the background area, and comparing the gray level of the background area with a preset second gray level threshold value to obtain a second gray level deviation;
correcting the edge line of the background area according to the second gray level deviation;
collecting a head portrait photo of a user, preprocessing the head portrait photo, and obtaining a face area image, wherein the head portrait photo comprises the following specific steps of:
acquiring a head portrait picture of a user, and carrying out region segmentation on the head portrait picture to obtain a plurality of sub-region images;
acquiring the brightness of each sub-area image to obtain a sub-area image brightness value;
comparing the brightness value of the sub-region image with a preset brightness threshold value to obtain a brightness deviation rate;
judging whether the brightness deviation rate is larger than or equal to a preset brightness deviation rate threshold value;
if the brightness of the sub-area image is greater than or equal to the brightness of the sub-area image, generating feedback information, and adjusting the brightness of the sub-area image according to the feedback information;
if the face area is smaller than the preset value, acquiring a face area image;
acquiring a certificate image, extracting facial features, textures and skin colors, generating facial region color information, and further comprising:
acquiring a face area, establishing a reference point for the face area according to five sense organs, and respectively acquiring the color of the area in a preset range of each center by taking ears, noses, mouths and eyes as centers;
generating a circular area from the areas in the preset range of each center, and calculating the radius of the circular area and the color value in the circular area;
extending the radius value, generating an outer annular region which is not overlapped with the circular region, and collecting color values in the outer annular region;
comparing the color value in the circular area with the color value in the outer annular area to obtain color difference;
and generating color correction information according to the chromatic aberration, and adjusting the color value in the corresponding circular area or annular area according to the color correction information.
6. A computer readable storage medium, wherein a cloud database based transient license generation and verification method program is included in the computer readable storage medium, and when executed by a processor, the method of cloud database based transient license generation and verification is implemented as the steps of any one of claims 1 to 4.
CN202311333923.4A 2023-10-16 2023-10-16 Cloud database-based instant license generation and verification method, system and medium Active CN117095446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311333923.4A CN117095446B (en) 2023-10-16 2023-10-16 Cloud database-based instant license generation and verification method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311333923.4A CN117095446B (en) 2023-10-16 2023-10-16 Cloud database-based instant license generation and verification method, system and medium

Publications (2)

Publication Number Publication Date
CN117095446A CN117095446A (en) 2023-11-21
CN117095446B true CN117095446B (en) 2024-02-27

Family

ID=88770156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311333923.4A Active CN117095446B (en) 2023-10-16 2023-10-16 Cloud database-based instant license generation and verification method, system and medium

Country Status (1)

Country Link
CN (1) CN117095446B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120167A (en) * 2015-08-31 2015-12-02 广州市幸福网络技术有限公司 Certificate picture camera and certificate picture photographing method
CN110163806A (en) * 2018-08-06 2019-08-23 腾讯科技(深圳)有限公司 A kind of image processing method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080187184A1 (en) * 2007-02-01 2008-08-07 Kabushiki Kaisha Toshiba System and method for facial image enhancement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120167A (en) * 2015-08-31 2015-12-02 广州市幸福网络技术有限公司 Certificate picture camera and certificate picture photographing method
CN110163806A (en) * 2018-08-06 2019-08-23 腾讯科技(深圳)有限公司 A kind of image processing method, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Two-stage Verification based on Watermarking for Electronic Passport;Wang, ZF et al;《9th International Conference on Intelligent Information Hiding and Multimedia Signal Processing (IIH-MSP)》;第41-44页 *
三维点云及多模态人脸融合识别技术及其应用;张晖;《信息与电脑(理论版)》(第7期);第135-137页 *

Also Published As

Publication number Publication date
CN117095446A (en) 2023-11-21

Similar Documents

Publication Publication Date Title
US10789465B2 (en) Feature extraction and matching for biometric authentication
CN111428581B (en) Face shielding detection method and system
KR102406432B1 (en) Identity authentication methods and devices, electronic devices and storage media
CN105450411A (en) Method, device and system for utilizing card characteristics to perform identity verification
HUE031428T2 (en) Method, system and computer program for comparing images
CN110008943B (en) Image processing method and device, computing equipment and storage medium
CN110532746B (en) Face checking method, device, server and readable storage medium
CN111814564A (en) Multispectral image-based living body detection method, device, equipment and storage medium
CN110991231B (en) Living body detection method and device, server and face recognition equipment
CN107368817A (en) Face identification method and device
CN117095446B (en) Cloud database-based instant license generation and verification method, system and medium
CN112528261A (en) Method and device for identifying user identity of SIM card
CN110189350B (en) Method and device for determining pupil edge and storage medium
CN108985240B (en) Method, apparatus, electronic device and storage medium for evaluating object detection algorithm
KR100696251B1 (en) Method and apparatus for setting of comparison area and generating of user authentication information for iris recognition
WO2017219562A1 (en) Method and apparatus for generating two-dimensional code
CN114926878A (en) Non-monitoring remote face recognition method based on one-object-one-code corresponding scene
US20230103555A1 (en) Information processing apparatus, information processing method, and program
CN112560989A (en) Artificial intelligence anti-counterfeiting image identification method and system based on big data
CN112668412A (en) Two-dimensional code generation method and device, electronic equipment and storage medium
CN111291586A (en) Living body detection method, living body detection device, electronic apparatus, and computer-readable storage medium
CN116311553B (en) Human face living body detection method and device applied to semi-occlusion image
KR101972857B1 (en) Method for managing security of output document and document managing server based deep learning
CN109299945B (en) Identity verification method and device based on biological recognition algorithm
CN112464928A (en) Digital meter reading identification method, device, equipment and storage medium

Legal Events

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