CN117412158A - Method, device, equipment and medium for processing photographed original image into multiple credentials - Google Patents

Method, device, equipment and medium for processing photographed original image into multiple credentials Download PDF

Info

Publication number
CN117412158A
CN117412158A CN202311295938.6A CN202311295938A CN117412158A CN 117412158 A CN117412158 A CN 117412158A CN 202311295938 A CN202311295938 A CN 202311295938A CN 117412158 A CN117412158 A CN 117412158A
Authority
CN
China
Prior art keywords
certificate
photo
standard
photos
processing
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.)
Pending
Application number
CN202311295938.6A
Other languages
Chinese (zh)
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 Yipai Alliance Network Technology Co ltd
Original Assignee
Guangzhou Yipai Alliance Network 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 Yipai Alliance Network Technology Co ltd filed Critical Guangzhou Yipai Alliance Network Technology Co ltd
Priority to CN202311295938.6A priority Critical patent/CN117412158A/en
Publication of CN117412158A publication Critical patent/CN117412158A/en
Pending legal-status Critical Current

Links

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for processing a photographed original picture into various credentials, wherein the method comprises the following steps: receiving a photo original image uploaded by a photographic unit/user; intelligent detection is carried out on original pictures of photographed photos; after the detection is passed, cutting the original picture of the photographed photo into a photo with the standard of enterprise mark; and processing the photos with the enterprise standard according to the standard requirements of the selected certificate types to generate the certificate photos. The invention uses the digital photo original picture of the photographed color front portrait crown-free certificate, and rapidly generates certificate photos with different specifications by the technical means of three-detection three-processing six-channel certificate photo making, thereby realizing one-phase multi-purpose, solving the problems of repeated photographing, difficult photo multiplexing, complicated photo processing and the like of the masses, being capable of being repeatedly used in multiple occasions and multiple places within the photo validity period, leading the masses to have few legs and multiple information legs, and improving the convenience and happiness of the masses to transact business.

Description

Method, device, equipment and medium for processing photographed original image into multiple credentials
Technical Field
The invention relates to a method, a device, computer equipment and a storage medium for processing a shooting original picture into various credentials, belonging to the technical field of image processing in shooting service.
Background
In China, more than one hundred certificates and certificates are commonly used for each person in life, and various certificates and certificates are always handled from birth, household, reading, examination, personal identity, social security, title, wedding and country departure to old people until death. The certificate is an important component of the certificate, in particular legal certificates such as identity cards, exit and entry certificates (including passports, port Australian passes), drivers' licenses and the like, has strict standards and technical requirements, and photo artwork taken by digital cameras, mobile phones, self-service photographing all-in-one machines and other devices cannot be directly used for various certificates, and corresponding certificates are manufactured according to different technical standards and standard requirements of the photos of the types of the certificates. Thus, there are the following problems in credential illumination:
1) Certificate kinds and multiple standard specifications are difficult to distinguish
The certificates are various, such as resident identity card photos, motor vehicle driver license photos, inbound certificate photos and the like, because different certificates adopt different certificate making processes, each business department respectively makes corresponding certificate standards, the background, size, pixels, color and other human image acquisition technical specifications have great differences, the resident identity card photos are white, the inbound certificate photos are blue, the driver license photos are white … … and the like, the photo technical standards and the specification requirements of each certificate type are different, and a photographic service unit or masses need to memorize various certificate photo technical standards to make corresponding certificates.
2) Certificate photographs are difficult to take and difficult to reuse
Because the license has strong specialization and many standard specifications, the masses can take photos by using cameras, smart phones and other self-shooting modes, and the photos barely accord with certain certificate standards, but are difficult to reuse on other certificates; the photograph is shot to the photo studio, the photographer, the photo repairing worker and the like can not take and process the photograph manually, the time is long, and the certificate photograph can not be reused on other certificates, when the certificate photograph is needed for transacting other businesses in a short period, the time is also needed to take the photograph again to the photo studio, the photograph is folded back and forth, the expense is paid again, the required certificate photograph can be obtained only with time and effort, and the convenience of certificate handling of the masses is seriously affected.
3) Cumbersome and time-consuming credential production process
The existing certificate photograph processing technology cannot process a photographed original picture into a plurality of certificates with different certificate types at the same time, and whether manual or automatic image processing is adopted, photograph processing (comprising the steps of cutting, color adjustment, background replacement and the like) is required to be carried out on different standard certificate photographs one by one, and the photograph processing can be completed only 10 minutes less and 20 minutes more or longer, so that the repeated processing efficiency is low, and the normal development of other businesses of a photographic unit is influenced.
Disclosure of Invention
In view of this, the invention provides a method, a device, a computer device and a storage medium for processing original pictures into multiple credentials, which can solve the problems of repeated shooting, difficult multiplexing of photos, complicated photo processing and the like of the masses, can be reused in multiple occasions and multiple places in the effective period of the photos, and can lead the masses to run legs less and information more, and realize one-phase multiple purposes by using an image processing method for processing multiple credentials based on the original pictures, thereby improving the convenience and happiness of the masses to transact business.
A first object of the present invention is to provide a method of processing a photographic artwork into a plurality of credentials.
A second object of the present invention is to provide a device for processing a photographic artwork into a plurality of credentials.
A third object of the present invention is to provide a computer device.
A fourth object of the present invention is to provide a storage medium.
The first object of the present invention can be achieved by adopting the following technical scheme:
a method of processing a captured artwork into a plurality of credentials, the method comprising:
receiving a photo original image uploaded by a photographic unit/user;
intelligent detection is carried out on original pictures of photographed photos;
after the photo original image passes the detection, cutting the photo original image into photos with the standard of enterprise mark;
processing the photos of the enterprise standard according to the standard requirements of the selected certificate types to generate certificate photos;
standard detection is carried out on the certificate;
after the certificate passes the detection, the certificate is processed to generate the certificates with different certificate types and specifications.
Further, the intelligent detection of the original photo picture includes:
detecting whether the color brightness, the posture dressing, the image quality and the clothing ornament of the original picture accord with the requirements of the certificate photograph standard.
Further, the processing the photo of the enterprise standard to generate a certificate photo includes:
and cutting, color matching, brightness adjusting and background drawing are carried out on the photo with the enterprise standard, so that the certificate photo is generated.
Further, the steps of cutting, color matching, brightness adjustment and background drawing for the photos with the standard of the enterprise comprise:
acquiring the image width and the image height of the target certificate according to the standard requirements of the selected certificate type;
dividing a left eye area, a right eye area, a head top position, a chin position, a left cheek and a right cheek aiming at a human face in a photo of the enterprise standard, and acquiring corresponding parameters of each area;
according to the corresponding parameters, image width and image height of each region, face width correction, centering correction, scaling calculation and clipping coordinate calculation are sequentially carried out;
cutting the photos with the standard of the enterprise mark according to the cutting coordinates;
detecting the face color in the cut photo, and sequentially performing brightness adjustment and color adjustment;
and acquiring the adjusted standard license, the Trimap and the Alpha map filled with the background color, and combining the standard license, the Trimap and the Alpha map.
Further, the steps of face width correction, centering correction, scaling calculation and clipping coordinate calculation are sequentially performed according to the parameters, the image width and the image height corresponding to each region, and include:
according to the parameters of the head top position, the chin position, the left cheek and the right cheek, calculating to obtain the face width, and correcting the face width;
calculating offset according to parameters of the left eye area, the right eye area, the top of head position, the left cheek, the right cheek and the chin position, so as to perform centering correction;
calculating to obtain a scaling ratio according to the calculated face width, the parameters of the left cheek and the right cheek;
according to the parameters of the scaling, the image width, the face width after correction and the left cheek, calculating to obtain an upper left X coordinate and a lower right X coordinate to be cut;
calculating to obtain an upper left Y coordinate to be cut according to the parameters of the scaling and the overhead position;
and calculating to obtain the right lower Y coordinate to be cut according to the parameters of the scaling, the overhead position and the image height.
Further, the detecting the face color in the cut photo, and sequentially performing brightness adjustment and color adjustment, includes:
calculating to obtain a brightness difference according to the bias brightness correction coefficient and the overall adjustment value, so as to adjust brightness;
if the color is reddish or cyan-shifted, according to the reddish correction coefficient and the reddish adjustment value, reddish or cyan-shifted adjustment is carried out;
if the color is yellow, performing yellow adjustment according to the yellow correction coefficient and the cyan adjustment value;
if the color is bluish, the bluish adjustment is carried out according to the bluish correction coefficient and the bluish adjustment value.
Further, the standard detection of the certificate comprises:
detecting whether the color brightness, the posture dressing, the clothing ornament and the portrait quality of the certificate accord with the standard requirements of the certificate.
Further, after the processing is performed on the certificate, the method further includes:
spot check is carried out on the certificates with different certificate types and specifications;
if the spot check passes, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user;
if the spot check is not passed, the certificate is corrected to ensure that the standard specification of various certificates is met, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user.
The second object of the present invention can be achieved by adopting the following technical scheme:
an apparatus for processing artwork into multiple credentials, the apparatus comprising:
the receiving module is used for receiving the photo original pictures uploaded by the photographic unit/user;
the first detection module is used for intelligently detecting original pictures of photographed photos;
the cutting module is used for cutting the original photo picture into photos with the standard of enterprise marking after the original photo picture passes the detection;
the first processing module is used for processing photos with the standard of the enterprise mark according to the standard requirement of the selected certificate type to generate a certificate photo;
the second detection module is used for carrying out standard detection on the certificate;
and the second processing module is used for processing the certificate photos after the certificate photos pass detection to generate the certificate photos with various different certificate types and specifications.
The third object of the present invention can be achieved by adopting the following technical scheme:
a computer device comprising a processor and a memory for storing a program executable by the processor, the processor implementing the method as described above when executing the program stored in the memory.
The fourth object of the present invention can be achieved by adopting the following technical scheme:
a storage medium storing a program which, when executed by a processor, implements the method described above.
Compared with the prior art, the invention has the following beneficial effects:
the invention is a method for processing the original pictures into multiple kinds of credentials photo (short for 'one-phase multipurpose'), the photographed digital photo original pictures of the color front portrait crown-free credentials are processed by 'three-detection three-processing' six-path credentials photo making technical means: the method comprises the steps of intelligent detection of original pictures, automatic (or manual) cutting of enterprise marks, intelligent processing (cutting of certificate photos, color adjustment and brightness adjustment and background processing), standard detection of a photo of a plurality of photos, standard intelligent (or manual) processing (cutting, color adjustment and brightness adjustment and background color replacement) of different certificate photos, certificate photo production processes such as spot check detection (or manual correction) of various certificate photo standards and the like, and rapidly generates certificate photos of different specifications, such as resident identity card photos, passport or port Australian pass photos, motor vehicle drivers license photos, resident license photos, social security card photos and the like. The users of the masses show photo receipts (or electronic license codes) when transacting business according to the needs, after the business departments sweep the codes, the business departments acquire corresponding photo information to transact business, so that photos of various certificate types can be obtained for multiplexing in multiple scenes, and convenience and happiness of the masses are greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a simplified flow chart of a method for processing a photographic artwork into multiple credentials according to embodiment 1 of the present invention.
Fig. 2 is a specific flowchart of a method for processing a photographic artwork into multiple credentials according to embodiment 1 of the present invention.
Fig. 3 is a schematic diagram of a method for processing a photographic artwork into multiple credentials according to embodiment 1 of the present invention.
Fig. 4 is a schematic diagram of photo inspection verification according to embodiment 1 of the present invention.
FIG. 5 is a schematic diagram of a receipt or license code generation in accordance with embodiment 1 of the present invention.
Fig. 6 is a graph showing the effect before adjustment of the insufficient brightness condition in embodiment 1 of the present invention.
Fig. 7 is a graph showing the effect of the brightness shortage in embodiment 1 of the present invention after adjustment.
Fig. 8 is a schematic diagram of a standard certificate of the embodiment 1 after being tinted and lightened.
FIG. 9 is a Trimap of example 1 of the present invention.
Fig. 10 is a final effect diagram of the matting and background exchanging of embodiment 1 of the present invention.
FIG. 11 is a schematic diagram of a specific application of the credential of example 1 of the present invention.
Fig. 12 is a block diagram showing the structure of an apparatus for processing a photographic artwork into multiple certificates according to embodiment 2 of the present invention.
Fig. 13 is a block diagram showing the structure of a computer device according to embodiment 3 of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
Example 1:
as shown in fig. 1 to 5, the present embodiment provides a method for processing a photographic original image into multiple credentials, where the method can be applied to a platform system, and includes the following steps:
s101, receiving the photo original image uploaded by a photographic unit/user.
S102, intelligent detection is carried out on the original pictures of the photographed photos.
In this embodiment, after uploading the original photo image to the platform system, the camera unit/user performs intelligent detection on the original photo image, mainly detects whether the color brightness, the posture dressing, the image quality, the clothing ornament, and the like of the original photo image meet the requirements of the standard certificate, if so, the process goes to step S103, and if not, the result of the failed detection is fed back to the camera unit/user.
S103, cutting the original picture of the shot photo into a photo with the standard of enterprise mark.
In this embodiment, the photo is cut into photos with the standard of the enterprise standard through the platform software or the interface, and the cutting can be performed automatically or manually.
S104, processing the photos of the enterprise standard according to the standard requirements of the selected certificate types to generate the certificate photos.
In this embodiment, a photo of the enterprise standard is processed to generate a certificate photo, which specifically includes: and cutting, color matching, brightness adjusting and background drawing are carried out on the photo with the enterprise standard, so that the certificate photo is generated.
A. Clipping process
And acquiring the image width and the image height of the target certificate according to the standard requirements of the selected certificate type. Dividing a left eye region, a right eye region, a top of head position, a chin position, a left cheek and a right cheek for faces in photos of an enterprise standard, and acquiring corresponding parameters of each region, wherein the top of head position is also called top of head distance, the left eye region and the right eye region parameters refer to X, Y coordinates of pupils in an image (photos of the enterprise standard), the top of head position and the chin position parameters refer to Y coordinates in the image (photos of the enterprise standard), and the left cheek and the right cheek parameters refer to X coordinates in the image (photos of the enterprise standard), and the parameters are obtained by using OpenCV; according to the corresponding parameters, image width and image height of each region, face width correction, centering correction, scaling calculation and clipping coordinate calculation are sequentially carried out; and cutting the photo with the standard of the enterprise mark according to the cutting coordinates.
The parameters corresponding to the six areas of the left eye area, the right eye area, the top of the head position, the chin position, the left cheek and the right cheek are respectively marked as LeftEye, rightEye, headTop, chin, leftCheek and RightCheek, and the image width and the image height are marked as ImageWidth and ImageHeight.
According to the corresponding parameters, image width and image height of each region, face width correction, centering correction, scaling calculation and clipping coordinate calculation are sequentially carried out, and the method specifically comprises the following steps:
1) Face width correction
According to the parameters of the head top position, the chin position, the left cheek and the right cheek, the face width is calculated, so that the face width correction is carried out, and the face width is calculated according to the following formula:
FaceWidth=Chin*(RightCheek-LeftCheek)/(Chin–HeadTop)
2) Centering correction
The offset is calculated from parameters of left eye area, right eye area, overhead position, left cheek, right cheek and chin position, as follows:
Offset=(((LeftCheek+RightCheek)/2–(LeftEye-RightEye)/2)*Chin)/(Chin-HeadTop)
and carrying out centering correction according to the calculated offset to obtain the x coordinate of the left cheek after centering correction and the x coordinate of the right cheek after centering correction, wherein the x coordinate is represented by the following formula:
LeftCheek’=LeftCheek–Offset
RightCheek’=RightCheek–Offset
3) Calculating a scale
According to the calculated face width, the parameters of the left cheek after centering correction and the right cheek after centering correction, the scaling ratio is calculated, and the following formula is obtained:
RATE=(LeftCheek’–RightCheek’/FaceWidth)
4) Calculating clipping coordinates
According to the scaling, the image width, the face width obtained by calculation and the parameters of the left cheek after centering correction, the left upper X coordinate and the right lower X coordinate to be cut are obtained by calculation, and the following formula is adopted:
upper left coordinate x=leftcheek' -RATE ((ImageWidth-FaceWidth)/2)
Lower right coordinates x=leftcheek' -RATE ((ImageWidth-FaceWidth)/2) + (RATE)
mageWidth)
And calculating the upper left Y coordinate to be cut according to the parameters of the scaling and the overhead position, wherein the upper left Y coordinate is as follows:
upper left coordinate y=headtop-RATE
And calculating the right lower Y coordinate to be cut according to parameters of the scaling, the overhead position and the image height, wherein the following formula is as follows:
lower right coordinate y=headtop-RATE =headtop+rate =imageheight
B. Brightness adjusting process
Detecting face colors in the cut photo, and sequentially performing brightness adjustment and color adjustment, specifically including:
1) According to the bias brightness correction coefficient and the overall adjustment value, calculating to obtain a brightness difference, wherein the brightness difference is represented by the following formula:
Diff=DefaultLight–d6
if diff=0, curve (-1, -1) adjustment is performed;
if abs (Diff) is less than or equal to 5, the following adjustment is performed:
1) If Diff >0, curve (diff+3 ) adjustments are made.
2) If Diff <0, curve (Diff-3 ) adjustments are made.
If abs (Diff) >5, a configuration item LightOffset is defined, which can be automatically adjusted, the recommended value is 5, and the following adjustment is performed:
1) If Diff >0, curve (diff+LightOffset ) adjustment is performed.
2) If Diff <0, curve (Diff-LightOffset ) adjustment is performed.
2) If the color is reddish or cyan, according to the reddish correction coefficient and the reddish adjustment value, the reddish or cyan adjustment is carried out, and the following formula is adopted:
and (3) red bias adjustment: curve (DefaultRed-d 1, d1-DefaultRed, 0)
And (3) green bias adjustment: curve (DefaultRed-d 1, 0)
3) If the color is yellow, according to the yellow correction coefficient and the cyan adjustment value, yellow adjustment is carried out, and the following formula is adopted:
Curve(0,0,d4-DefaultYellow)
4) If the color is bluish, the bluish adjustment is carried out according to the bluish correction coefficient and the bluish adjustment value.
Curve(0,0,d4-DefaultBlue)
In the above-mentioned formulae, the first and second light-emitting elements,
d1 is a redness adjustment value, d1=r 120/g;
d4 is a metacyan adjustment value, d4=g 120/b;
d6=ar-b+c+b, wherein A, B, C is an empirical value constant, and more reasonable constant values are obtained by observing photo effects in a large number, wherein 0.05-0.35 of A, 0.1,0.4-0.6 of B, 0.44,0.10-0.30 of C and 0.18 of C are optimal references;
the values of the variables r, g and b are the average value of the face colors and are calculated by the total amount of the face region r/the total amount of the face region pixels, the total amount of the face region g/the total amount of the face region pixels and the total amount of the face region b/the total amount of the face region pixels in the photo;
the face area refers to a rectangular area containing most of face skin, and specifically, the X coordinate of the upper left corner of the rectangular area is: x-coordinate of left eye region-20; the Y coordinate of the upper left corner of the rectangular region is: y-coordinate of left eye region-20; the Width of the rectangular area is: the X coordinate of the right eye region-the X coordinate of the left eye region +40; the Height of the rectangular region is: the X-coordinate of the right eye region-the X-coordinate of the left eye region.
Curve is a Curve function, which is the adjustment of the image color R, G, B channel;
defaultlight is a bias brightness correction coefficient, can be freely adjusted, and has a reference value of 175;
defaulter is a redness correction coefficient, can be freely adjusted, and has a reference value of-5;
defaultyellow is a yellow correction coefficient, can be freely adjusted, and has a reference value of-5;
DefaultBuue is a bluish correction factor that can be freely adjusted with a reference of-5.
In this embodiment, the effect diagram before adjustment is shown in fig. 6, the effect diagram after adjustment is shown in fig. 7, and the photo before adjustment is directly cut based on the original diagram by observing the effect diagram before and after adjustment, so that the whole is darker, the partial area has heavier shadow, the whole brightness of the adjusted effect photo is improved, the influence of the shadow on the quality of the whole photo is weakened, and the photo looks more beautiful.
C. And (5) a background replacing process by matting.
1) The adjusted standard certificate is obtained, and the standard certificate after the color adjustment and the brightening is shown in fig. 8.
2) A Trimap image is acquired based on the Grabcut algorithm, as shown in fig. 9, white represents a background color, light gray represents a boundary between a foreground color and the background color, and dark gray represents the foreground color.
3) The Alpha map is acquired, filled in with the background color, such as yellow.
4) Standard license, trimap graph and Alpha graph are combined using Bayesian algorithm to form the final effect as shown in fig. 10.
S105, standard detection is carried out on the evidence.
In this embodiment, standard detection is performed on the certificate, specifically: detecting whether the color brightness, the posture dressing, the clothing ornament and the portrait quality of the certificate accord with the standard requirements of the certificate, and checking the standard detection in an automatic or manual mode; if the detection is passed, the process proceeds to step S106, and if the detection is not passed, the result of the detection is fed back to the camera unit/user.
S106, processing the certificate photo to generate certificate photos with various different certificate types and specifications.
In this embodiment, the processing of the certificate is similar to the processing in step S104, and the certificate is cut, toned, brightened, and matted to change the background, so as to generate certificates with different certificate types and specifications.
The present embodiment may further include, after step S106:
s107, spot check is carried out on the certificates with different certificate types and specifications.
The spot check may be performed automatically or manually, and if the spot check passes, the process proceeds to step S108, and if the spot check does not pass, the process proceeds to step S109.
S108, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user.
S109, correcting the certificate, ensuring that the certificate meets various certificate standard specifications, storing the certificate in a database, generating a receipt or a certificate code, and sending the receipt or the certificate code to a photographic unit/user.
In this embodiment, the photographs that do not pass through the spot check are corrected automatically or manually, so as to ensure that the photographs conform to various certificate standard specifications, such as resident identification cards, passports or passports and australia passes, motor vehicle drivers licenses, and the like.
The specific application of the finally obtained credential in this embodiment is shown in fig. 11, and is specifically described as follows:
1) After the crowd obtains a multi-purpose photo receipt (or license code) from a photographic unit or a platform system, the crowd goes to each business department to transact business, such as the business department transacts identity card, the business department transacts business in-coming, and the like, and presents the multi-purpose photo receipt (or license code) according to the business requirement.
2) Each business department scans a multi-purpose photo receipt (or license code), initiates photo calling to a business intranet system according to photo information acquired by the receipt (or license code), and sends a photo calling instruction to a platform system after the business intranet system receives a business department photo request.
3) After receiving the photo calling instruction, the platform system sends certificate photo information corresponding to the one-phase multipurpose photo library to the corresponding business intranet system for each business department to call the corresponding photo information, such as resident identity card photo information required by the administrative department, a calling request is initiated to the photo of the administrative business intranet system, and after receiving the instruction, the administrative business intranet system calls the corresponding photo information to the platform one-phase multipurpose photo library for use by the business department to complete business handling of the masses.
It should be noted that while the method operations of the above embodiments are described in a particular order, this does not require or imply that the operations must be performed in that particular order or that all of the illustrated operations be performed in order to achieve desirable results. Rather, the depicted steps may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
Example 2:
as shown in fig. 12, the present embodiment provides an apparatus for processing an original image into multiple certificates, where the apparatus includes a receiving module 1201, a first detecting module 1202, a clipping module 1203, a first processing module 1204, a second detecting module 1205 and a second processing module 1206, and the specific descriptions of the respective modules are as follows:
and the receiving module 1201 is used for receiving the photo original image uploaded by the photo taking unit/user.
The first detection module 1202 is configured to perform intelligent detection on original pictures.
The cropping module 1203 is configured to crop the photo original into a photo with the standard of the enterprise after the photo original passes the detection.
The first processing module 1204 is configured to process the photograph of the enterprise standard according to the standard requirement of the selected certificate type, and generate a certificate photograph.
And a second detection module 1205 for performing standard detection on the certificate.
The second processing module 1206 is configured to process the credential after the credential passes the detection, and generate credential with various different credential types and specifications.
Specific implementation of the above modules can be seen in embodiment 1 above; it should be noted that, the apparatus provided in this embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure is divided into different functional modules, so as to perform all or part of the functions described above.
Example 3:
the present embodiment provides a computer apparatus, as shown in fig. 13, which includes a processor 1302, a memory, an input device 1303, a display device 1304, and a network interface 1305 connected through a system bus 1301, where the processor is used to provide computing and control capabilities, the memory includes a nonvolatile storage medium 1306 and an internal memory 1307, where the nonvolatile storage medium 1306 stores an operating system, a computer program, and a database, and the internal memory 1307 provides an environment for the operating system and the computer program in the nonvolatile storage medium, and when the processor 1302 executes the computer program stored in the memory, the method for processing a photographic original image into multiple certificates according to embodiment 1 described above is implemented as follows:
receiving a photo original image uploaded by a photographic unit/user;
intelligent detection is carried out on original pictures of photographed photos;
after the photo original image passes the detection, cutting the photo original image into photos with the standard of enterprise mark;
processing the photos of the enterprise standard according to the standard requirements of the selected certificate types to generate certificate photos;
standard detection is carried out on the certificate;
after the certificate passes the detection, the certificate is processed to generate the certificates with different certificate types and specifications.
Further, after processing the certificate, generating the certificates with different certificate types and specifications, the method further comprises:
spot check is carried out on the certificates with different certificate types and specifications;
if the spot check passes, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user;
if the spot check is not passed, the certificate is corrected to ensure that the standard specification of various certificates is met, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user.
Example 4:
the present embodiment provides a storage medium, which is a computer readable storage medium storing a computer program, and when the computer program is executed by a processor, the method for processing a photographic artwork according to the above embodiment 1 into multiple credentials is implemented as follows:
receiving a photo original image uploaded by a photographic unit/user;
intelligent detection is carried out on original pictures of photographed photos;
after the photo original image passes the detection, cutting the photo original image into photos with the standard of enterprise mark;
processing the photos of the enterprise standard according to the standard requirements of the selected certificate types to generate certificate photos;
standard detection is carried out on the certificate;
after the certificate passes the detection, the certificate is processed to generate the certificates with different certificate types and specifications.
Further, after processing the certificate, generating the certificates with different certificate types and specifications, the method further comprises:
spot check is carried out on the certificates with different certificate types and specifications;
if the spot check passes, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user;
if the spot check is not passed, the certificate is corrected to ensure that the standard specification of various certificates is met, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user.
The computer readable storage medium of the above embodiment may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an apparatus, device, or means for electronic, magnetic, optical, electromagnetic, infrared, or semiconductor, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this embodiment, the computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus. In the present embodiment, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. A computer program embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable storage medium may be written in one or more programming languages, including an object oriented programming language such as Java, python, C ++ and conventional procedural programming languages, such as the C-language or similar programming languages, or combinations thereof for performing the present embodiments. The program may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
In summary, the method for processing the original pictures into multiple types of credentials (abbreviated as 'one-phase multipurpose') comprises the steps of using the digital photo original pictures of the photographed color front face portrait crown-free credentials, and adopting the 'three-detection three-processing' six-path credentials photo making technical means: the method comprises the steps of intelligent detection of original pictures, automatic (or manual) cutting of enterprise marks, intelligent processing (cutting of certificate photos, color-adjusting and lighting, background processing), standard detection of a photo of a plurality of photos, standard intelligent (or manual) processing (cutting, color-adjusting and lighting and background color changing) of different certificate photos, certificate photo making processes such as spot check detection (or manual correction) of various certificate photo standards and the like, and photos of different specifications such as resident identity card photos, passport or port Australian pass photos, motor vehicle driving license photos, resident license photos, social security card photos and the like are rapidly generated. The users of masses show paper photo receipts (or electronic license codes) when transacting business according to the needs, after the business departments sweep the codes, the business departments acquire corresponding photo information to transact business, so that photos of various certificate types can be acquired for multiplexing in multiple scenes, and convenience and happiness of masses are greatly improved.
The above description is only of the preferred embodiments of the present invention, but the protection scope of the present invention is not limited thereto, and any person skilled in the art can substitute or change the technical solution and the inventive conception of the present invention equally within the scope of the disclosure of the present invention.

Claims (11)

1. A method of processing a captured artwork into a plurality of credentials, the method comprising:
receiving a photo original image uploaded by a photographic unit/user;
intelligent detection is carried out on original pictures of photographed photos;
after the photo original image passes the detection, cutting the photo original image into photos with the standard of enterprise mark;
processing the photos of the enterprise standard according to the standard requirements of the selected certificate types to generate certificate photos;
standard detection is carried out on the certificate;
after the certificate passes the detection, the certificate is processed to generate the certificates with different certificate types and specifications.
2. The method of claim 1, wherein the intelligent detecting of the photo artwork comprises:
detecting whether the color brightness, the posture dressing, the image quality and the clothing ornament of the original picture accord with the requirements of the certificate photograph standard.
3. The method of claim 1, wherein processing the photograph of the enterprise logo specification to generate a certificate photograph comprises:
and cutting, color matching, brightness adjusting and background drawing are carried out on the photo with the enterprise standard, so that the certificate photo is generated.
4. The method for processing the original pictures into a plurality of certificates according to claim 3, wherein the steps of cutting, toning, brightening and matting the pictures with the standard of the enterprise mark for background change comprise the following steps:
acquiring the image width and the image height of the target certificate according to the standard requirements of the selected certificate type;
dividing a left eye area, a right eye area, a head top position, a chin position, a left cheek and a right cheek aiming at a human face in a photo of the enterprise standard, and acquiring corresponding parameters of each area;
according to the corresponding parameters, image width and image height of each region, face width correction, centering correction, scaling calculation and clipping coordinate calculation are sequentially carried out;
cutting the photos with the standard of the enterprise mark according to the cutting coordinates;
detecting the face color in the cut photo, and sequentially performing brightness adjustment and color adjustment;
and acquiring the adjusted standard license, the Trimap and the Alpha map filled with the background color, and combining the standard license, the Trimap and the Alpha map.
5. The method of claim 4, wherein the sequentially performing face width correction, center correction, scaling calculation, and clipping coordinate calculation according to the parameters, image width, and image height corresponding to each region comprises:
according to the parameters of the head top position, the chin position, the left cheek and the right cheek, calculating to obtain the face width, and correcting the face width;
calculating offset according to parameters of the left eye area, the right eye area, the top of head position, the left cheek, the right cheek and the chin position, so as to perform centering correction;
calculating to obtain a scaling ratio according to the calculated face width, the parameters of the left cheek and the right cheek;
according to the parameters of the scaling, the image width, the face width after correction and the left cheek, calculating to obtain an upper left X coordinate and a lower right X coordinate to be cut;
calculating to obtain an upper left Y coordinate to be cut according to the parameters of the scaling and the overhead position;
and calculating to obtain the right lower Y coordinate to be cut according to the parameters of the scaling, the overhead position and the image height.
6. The method of claim 4, wherein detecting the face color in the cropped photograph sequentially performs brightness adjustment and color adjustment, comprising:
calculating to obtain a brightness difference according to the bias brightness correction coefficient and the overall adjustment value, so as to adjust brightness;
if the color is reddish or cyan-shifted, according to the reddish correction coefficient and the reddish adjustment value, reddish or cyan-shifted adjustment is carried out;
if the color is yellow, performing yellow adjustment according to the yellow correction coefficient and the cyan adjustment value;
if the color is bluish, the bluish adjustment is carried out according to the bluish correction coefficient and the bluish adjustment value.
7. The method of claim 1, wherein the standard detection of the certification comprising:
detecting whether the color brightness, the posture dressing, the clothing ornament and the portrait quality of the certificate accord with the standard requirements of the certificate.
8. The method of claim 1, wherein the processing the document to generate the document with the different document types further comprises:
spot check is carried out on the certificates with different certificate types and specifications;
if the spot check passes, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user;
if the spot check is not passed, the certificate is corrected to ensure that the standard specification of various certificates is met, the certificate is stored in a database, and a receipt or a certificate code is generated and sent to a photographic unit/user.
9. An apparatus for processing artwork into multiple credentials, the apparatus comprising:
the receiving module is used for receiving the photo original pictures uploaded by the photographic unit/user;
the first detection module is used for intelligently detecting original pictures of photographed photos;
the cutting module is used for cutting the original photo picture into photos with the standard of enterprise marking after the original photo picture passes the detection;
the first processing module is used for processing photos with the standard of the enterprise mark according to the standard requirement of the selected certificate type to generate a certificate photo;
the second detection module is used for carrying out standard detection on the certificate;
and the second processing module is used for processing the certificate photos after the certificate photos pass detection to generate the certificate photos with various different certificate types and specifications.
10. A computer device comprising a processor and a memory for storing a program executable by the processor, wherein the processor, when executing the program stored in the memory, implements the method of any one of claims 1-8.
11. A storage medium storing a program, which when executed by a processor, implements the method of any one of claims 1-8.
CN202311295938.6A 2023-10-09 2023-10-09 Method, device, equipment and medium for processing photographed original image into multiple credentials Pending CN117412158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311295938.6A CN117412158A (en) 2023-10-09 2023-10-09 Method, device, equipment and medium for processing photographed original image into multiple credentials

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311295938.6A CN117412158A (en) 2023-10-09 2023-10-09 Method, device, equipment and medium for processing photographed original image into multiple credentials

Publications (1)

Publication Number Publication Date
CN117412158A true CN117412158A (en) 2024-01-16

Family

ID=89497149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311295938.6A Pending CN117412158A (en) 2023-10-09 2023-10-09 Method, device, equipment and medium for processing photographed original image into multiple credentials

Country Status (1)

Country Link
CN (1) CN117412158A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100783482B1 (en) * 2006-11-06 2007-12-07 현대정보기술주식회사 Digital camera having function of taking passport photo, method, and method thereof
CN102063659A (en) * 2010-12-28 2011-05-18 广州商景网络科技有限公司 Method, server and system for collecting and making electronic photo
CN102592260A (en) * 2011-12-26 2012-07-18 广州商景网络科技有限公司 Certificate image cutting method and system
CN103986856A (en) * 2014-04-18 2014-08-13 庾梁健 Self-service identification photo system based on intelligent terminal
CN111626166A (en) * 2020-05-19 2020-09-04 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN115115504A (en) * 2021-03-23 2022-09-27 深圳市腾讯计算机系统有限公司 Certificate photo generation method and device, computer equipment and storage medium
CN115620364A (en) * 2022-10-14 2023-01-17 郑州视界极地创新科技有限公司 Certificate photo generation and detection method and system based on intelligent three-dimensional portrait acquisition

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100783482B1 (en) * 2006-11-06 2007-12-07 현대정보기술주식회사 Digital camera having function of taking passport photo, method, and method thereof
CN102063659A (en) * 2010-12-28 2011-05-18 广州商景网络科技有限公司 Method, server and system for collecting and making electronic photo
CN102592260A (en) * 2011-12-26 2012-07-18 广州商景网络科技有限公司 Certificate image cutting method and system
CN103986856A (en) * 2014-04-18 2014-08-13 庾梁健 Self-service identification photo system based on intelligent terminal
CN111626166A (en) * 2020-05-19 2020-09-04 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN115115504A (en) * 2021-03-23 2022-09-27 深圳市腾讯计算机系统有限公司 Certificate photo generation method and device, computer equipment and storage medium
CN115620364A (en) * 2022-10-14 2023-01-17 郑州视界极地创新科技有限公司 Certificate photo generation and detection method and system based on intelligent three-dimensional portrait acquisition

Similar Documents

Publication Publication Date Title
US9769354B2 (en) Systems and methods of processing scanned data
US8355574B2 (en) Determination of main object on image and improvement of image quality according to main object
US8644638B2 (en) Automatic localized adjustment of image shadows and highlights
US7389041B2 (en) Determining scene distance in digital camera images
US7830418B2 (en) Perceptually-derived red-eye correction
US20060078218A1 (en) Image correction apparatus, image correction program storage medium, image correction method, and image correction system
CN105120167A (en) Certificate picture camera and certificate picture photographing method
CN107800965B (en) Image processing method, device, computer readable storage medium and computer equipment
US20070122034A1 (en) Face detection in digital images
CN107358593A (en) Imaging method and device
JP2021531571A (en) Certificate image extraction method and terminal equipment
CN107330433A (en) Image processing method and device
CN106331505A (en) Shooting method and device
CN111064893A (en) Code scanning and photographing compatible method and electronic terminal
CN100382107C (en) Method and system for differentially and regularly modifying a digital image by pixel
US8498453B1 (en) Evaluating digital images using head points
CN111429536B (en) Method, system and storage medium for toning skin color in image
CN117412158A (en) Method, device, equipment and medium for processing photographed original image into multiple credentials
CN108986036A (en) Handle method, the terminal of file
US6922486B2 (en) Process of identification of shadows in an image and image obtained using the process
RU2329535C2 (en) Method of automatic photograph framing
CN105893578A (en) Method and device for selecting photos
CN109300186A (en) Image processing method and device, storage medium, electronic equipment
CN112541899A (en) Incomplete certificate detection method and device, electronic equipment and computer storage medium
CN115118888B (en) Intelligent mirror using method, intelligent mirror, electronic equipment and storage medium

Legal Events

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