CN108269230A - Certificate photo generation method, mobile terminal and computer readable storage medium - Google Patents
Certificate photo generation method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108269230A CN108269230A CN201711428136.2A CN201711428136A CN108269230A CN 108269230 A CN108269230 A CN 108269230A CN 201711428136 A CN201711428136 A CN 201711428136A CN 108269230 A CN108269230 A CN 108269230A
- Authority
- CN
- China
- Prior art keywords
- certificate photo
- user
- photo
- certificate
- standard photographs
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000008569 process Effects 0.000 claims description 25
- 230000015654 memory Effects 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 13
- 230000009977 dual effect Effects 0.000 claims description 11
- 238000000926 separation method Methods 0.000 abstract description 3
- 210000003128 head Anatomy 0.000 description 68
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 13
- 230000006854 communication Effects 0.000 description 11
- 230000037237 body shape Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 5
- 238000010295 mobile communication Methods 0.000 description 3
- 241001062009 Indigofera Species 0.000 description 2
- 230000004308 accommodation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003760 hair shine Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/50—Depth or shape recovery
- G06T7/55—Depth or shape recovery from multiple images
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of certificate photo generation method, mobile terminal and computer readable storage medium, the certificate photo generation method includes the following steps:Shooting carries the standard photographs of depth of view information;The certificate photo type of user's selection is detected, and obtains the corresponding certificate photo size of the certificate photo type and certificate photo background color;Background Recognition is carried out, and the background of standard photographs is replaced with the certificate photo background color to obtain initial certificate photo to the standard photographs according to the depth of view information;The size of initial certificate photo is adjusted according to certificate photo size to obtain target certificate photo.Compared with prior art, since standard photographs carry depth of view information, it therefore can be automatically by the user's head portrait and background separation in standard photographs when generating target certificate photo, and background is replaced with into certificate photo background color, standard photographs are adjusted the dimensions into certificate photo size, it realizes the customer satisfaction system certificate photo of quick and easy generation, enormously simplifies user's operation, improves user experience.
Description
Technical field
The present invention relates to a kind of technical field of image processing more particularly to certificate photo generation method, mobile terminal and calculating
Machine readable storage medium storing program for executing.
Background technology
People are frequently necessary to handle various certificates in life, study, work, such as resident identification card, social security, passport, work
It testifies, student's identity card, driver's license etc., and certificate photo, as important certificate identification marking, certificate head portrait type is various and has
Certain size specification and color, gage requirement etc..In general, people need to carry out photo acquisition to photo studio, however, due to each
Reason is planted, often will appear the problems such as stiff that has a serious mien in the certificate photo shot, people are to the satisfaction of certificate photo
It is universal relatively low.Meanwhile most people have no the code requirement of certificate photograph and making too many experience, therefore user oneself passes through
The image processing softwares such as PS carry out photo image procossing to obtain certificate photo be also unpractical.
Therefore, it is necessary to a kind of certificate photo generation method, mobile terminal and computer readable storage medium are provided to solve
Above-mentioned technical problem.
Invention content
It is a primary object of the present invention to propose a kind of certificate photo generation method, mobile terminal and computer-readable storage medium
Matter, it is intended to which the customer satisfaction system certificate photo of generation for helping user quick and easy avoids that photo studio is gone to shoot every time, and it need not be used
Higher photo disposal technical ability is grasped at family, can simplify user's operation, improves user experience.
First, to achieve the above object, the present invention provides a kind of certificate photo generation method, the certificate photo generation method packet
Include following steps:
Shooting carries the standard photographs of depth of view information;
The certificate photo type of user's selection is detected, and obtains the corresponding certificate photo size of the certificate photo type and certificate photo
Background color;
Background Recognition carries out the standard photographs, and the background of the standard photographs is replaced according to the depth of view information
For the certificate photo background color to obtain initial certificate photo;
The size of the initial certificate photo is adjusted according to the certificate photo size to obtain target certificate photo.
Optionally, the step of shooting carries the standard photographs of depth of view information includes:
In the shooting process of the standard photographs, 3D detections are carried out by dual camera to obtain the standard photographs
Depth of view information, and the depth of view information is added to the standard photographs.
Optionally, the step of shooting carries the standard photographs of depth of view information further includes:
In the shooting process of the standard photographs, shooting lead-frame is shown in shooting preview interface so that user to be guided to adjust
Body shape.
Optionally, it is described that Background Recognition is carried out, and the standard is shone to the standard photographs according to the depth of view information
The background of piece further includes after replacing with the step of certificate photo background color is to obtain initial certificate photo:
The Skin Color Information of user's head portrait in the standard photographs is obtained, color is carried out to user's head portrait according to the Skin Color Information
Caidiao opera is whole so that user's head portrait complies with standard the colour of skin.
Optionally, the certificate photo size includes certificate photo rectangle frame size and user's head portrait and the certificate photo rectangle frame
Relative position;It is described that the size of the initial certificate photo is adjusted to obtain the step of target certificate photo according to the certificate photo size
Suddenly include:
Adjusting is zoomed in and out to the certificate photo rectangle frame of the initial certificate photo according to the certificate photo rectangle frame size;
User's head portrait is zoomed in and out according to the relative position of user's head portrait and the certificate photo rectangle frame, moves place
It manages so that user's head portrait and the certificate photo rectangle frame of the initial certificate photo meet the relative position.
Meanwhile the present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute
The certificate photo generation program that can be run on memory and on the processor is stated, the certificate photo generates program by the processing
Device realizes following steps when performing:
Shooting carries the standard photographs of depth of view information;
The certificate photo type of user's selection is detected, and obtains the corresponding certificate photo size of the certificate photo type and certificate photo
Background color;
Background Recognition carries out the standard photographs, and the background of the standard photographs is replaced according to the depth of view information
For the certificate photo background color to obtain initial certificate photo;
The size of the initial certificate photo is adjusted according to the certificate photo size to obtain target certificate photo.
Optionally, the processor is additionally operable to perform the certificate photo generation program, to realize following steps:
In the shooting process of the standard photographs, 3D detections are carried out by dual camera to obtain the standard photographs
Depth of view information, and the depth of view information is added to the standard photographs.
In the shooting process of the standard photographs, shooting lead-frame is shown in shooting preview interface so that user to be guided to adjust
Body shape.
Optionally, it is described that Background Recognition is carried out, and the standard is shone to the standard photographs according to the depth of view information
After the background of piece replaces with the step of certificate photo background color is to obtain initial certificate photo, the processor is additionally operable to perform institute
Certificate photo generation program is stated, to realize following steps:
The Skin Color Information of user's head portrait in the standard photographs is obtained, color is carried out to user's head portrait according to the Skin Color Information
Caidiao opera is whole so that user's head portrait complies with standard the colour of skin.
Optionally, the certificate photo size includes certificate photo rectangle frame size and user's head portrait and the certificate photo rectangle frame
Relative position;It is described that the size of the initial certificate photo is adjusted to obtain the step of target certificate photo according to the certificate photo size
Suddenly include:
Adjusting is zoomed in and out to the certificate photo rectangle frame of the initial certificate photo according to the certificate photo rectangle frame size;
User's head portrait is zoomed in and out according to the relative position of user's head portrait and the certificate photo rectangle frame, moves place
It manages so that user's head portrait and the certificate photo rectangle frame of the initial certificate photo meet the relative position.
In addition, the present invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium
There is certificate photo to generate program, the certificate photo generation program is performed the step for realizing certificate photo generation method as described above
Suddenly.
Compared to the prior art, certificate photo generation method proposed by the invention, mobile terminal and computer-readable storage
Medium, first shooting carry the standard photographs of depth of view information, then detect the certificate photo type of user's selection, and described in acquisition
The corresponding certificate photo size of certificate photo type and certificate photo background color later carry out the standard photographs according to the depth of view information
Background Recognition, and the background of the standard photographs is replaced with into the certificate photo background color to obtain initial certificate photo, last basis
The certificate photo size adjusts the size of the initial certificate photo to obtain target certificate photo, due to the standard photographs in the present invention
Depth of view information is carried, therefore can be automatically by user's head portrait in standard photographs and background point when generating target certificate photo
From, and background is replaced with into certificate photo background color, standard photographs are adjusted the dimensions into certificate photo size, are realized quick and easy
The customer satisfaction system certificate photo of generation, avoid user and photo studio gone to shoot every time, and it grasps higher photo without user
Technical ability is handled, user's operation is enormously simplified, improves user experience.
Description of the drawings
The hardware architecture diagram of Fig. 1 each one optional mobile terminals of embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the implementation process diagram of certificate photo generation method first embodiment of the present invention;
Fig. 4 is the implementation process diagram of certificate photo generation method second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram that certificate photo of the present invention generates program first embodiment;
Fig. 6 is the high-level schematic functional block diagram that certificate photo of the present invention generates program second embodiment;
Fig. 7 is the display interface that certificate photo generates mono- embodiments of APP;
Fig. 8 is the schematic diagram of one embodiment when generating target certificate photo by standard photographs;
Fig. 9 is the schematic diagram of one embodiment when shooting preview interface shows shooting lead-frame.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates
Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103
The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call
Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles information system, user interface and application program etc., and modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
The LTE system united as universal mobile communications technology, the LTE system include the UE (User Equipment, the use that communicate connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber location-server) 2032, other MME2033, SGW (Serving Gate
Way, gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., it does not limit herein.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
First, the present invention proposes a kind of certificate photo generation method, which is applied to described in Fig. 1 to Fig. 2
Mobile terminal.As shown in figure 3, it is the implementing procedure figure of certificate photo generation method first embodiment of the present invention.In the present embodiment,
According to different demands, the execution sequence of the step in flow chart shown in Fig. 3 can change, and certain steps can be omitted.Institute
Certificate photo generation method is stated to include:
Step S301, shooting carry the standard photographs of depth of view information.
In the present embodiment, user is simple, quickly generates certificate photo in order to help, and user needs shooting standard photographs in advance,
The standard photographs refer to the higher photo of user satisfaction, and user's head portrait that standard photographs include can be as the number of certificate photo
According to source.And in order to realize quick separating prospect (i.e. user's head portrait) and background from standard photographs, need the standard photographs certainly
Band depth of view information.Wherein, depth of view information both can automatically obtain in the shooting process of standard photographs, can also be subsequently to standard
Photo carries out image procossing and obtains and be added in the standard photographs.Preferably, in the present embodiment depth of view information in standard photographs
Shooting process in obtain automatically, specifically, the acquisition methods of depth of view information include:In the shooting process of standard photographs, lead to
It crosses dual camera and carries out 3D detections to obtain the depth of view information of the standard photographs, and the depth of view information is added to the mark
Quasi- photo.Since the method for dual camera being utilized to obtain depth of view information in the prior art has been more mature technology,
The specific acquisition methods of depth of view information are not described in detail in the present invention.
Step S302, the certificate photo type of detection user's selection, and obtain the corresponding certificate hindsight of the certificate photo type
Very little and certificate photo background color.
In the present embodiment, various types of certificate photos can be quickly generated, wherein certificate photo type includes a variety of, and different
Certificate photo needed for size and background color it is different, such as:Identity card picture (22mm × 32mm), second generation identity card photo (26mm
× 32mm), driver's license photo (22mm × 32mm), the small one-inch of black and white (22mm × 32mm), colored small one-inch (27mm × 38mm),
Colored big one-inch (40mm × 55mm), common certificate photo (33mm × 48mm), 1 inch (25mm × 35mm), 2 inches (35mm ×
49mm), 3 inches (35mm × 52mm), Hongkong and Macro's pass photo (33mm × 48mm), visa to America photo (50mm × 50mm),
Japanese visa photo (45mm × 45mm), big two cun (35mm × 45mm), passport photograph (33mm × 48mm), graduate's photo
(33mm × 48mm), driving license (21mm × 26mm), licence (60mm × 91mm).Meanwhile the common background color of certificate photo have white, it is red
Color, three kinds of blue, the rgb value of three kinds of colors are respectively:White R:255G:255B:255th, red R:255G:0B:0th, blue R:
67G:142B:219。
In the present embodiment, user can select to generate the certificate photo of any type.Subsequently for convenience, this hair
It is bright it is middle certificate photo generation method is defined as certificate photo generation APP, please refer to Fig. 7, it is real that Fig. 7 for certificate photo generates APP mono-
The display interface of example is applied, as shown in fig. 7, after user opens certificate photo generation APP, can show camera icon and certificate photo generation
Icon, after user clicks the camera icon, can enter camera acquire standard photographs, when certificate photo generation APP memories contain to
After few standard photographs, user can click certificate photo generation icon, after user clicks certificate photo generation icon, can enter
Certificate photo type selection interface can show that multiple certificate photo types are selected for user, while user also needs to select on the interface
One standard photographs automatically generates the corresponding certificate photo of the certificate photo type.
Step S303 carries out Background Recognition, and by the standard photographs according to the depth of view information to the standard photographs
Background replace with the certificate photo background color to obtain initial certificate photo.
In the present embodiment, since standard photographs carry depth of view information, certificate photo generation APP can utilize the depth of field
Information carries out Background Recognition to standard photographs, quickly recognizes the background and user's head portrait in standard photographs, and passes through selected
The certificate photo size and certificate photo background color of certificate photo type handle the standard photographs.Specifically, by the standard photographs
Background replace with the certificate photo background color to obtain initial certificate photo, if the certificate photo type that user selects is Hongkong and Macro's pass
Photo, and the certificate photo size for getting Hongkong and Macro's pass photo is 33mm × 48mm, certificate photo background color is blue, then by standard
The background of photo replaces with blue, and the standard photographs obtained after background is replaced are denoted as initial certificate photo.It should be noted that
The present embodiment Plays photo carries depth of view information, therefore can be with quick separating background and user's head portrait, and which obviate users
By PS when image processing softwares isolate user's head portrait, need bit by bit to select head portrait profile, operation it is more complicated
Problem.
Step S304 adjusts the size of the initial certificate photo to obtain target certificate photo according to the certificate photo size.
Continuation is illustrated by taking Hongkong and Macro's pass photo as an example, due to getting the certificate photo size of Hongkong and Macro's pass photo
For 33mm × 48mm, if the size of standard photographs and the certificate photo size are inconsistent, by adjusting the dimensions to for standard photographs
33mm×48mm.Furthermore, it is necessary to explanation, usual certificate photo size not only includes whole size, i.e. certificate photo rectangle frame
Size also requires position of user's head portrait in certificate photo, for this purpose, in the present embodiment, the certificate photo size packet
Include the relative position of certificate photo rectangle frame size and user's head portrait and the certificate photo rectangle frame;It is described according to the certificate hindsight
The very little size for adjusting the initial certificate photo the step of obtaining target certificate photo to include:According to the certificate photo rectangle frame size
Adjusting is zoomed in and out to the certificate photo rectangle frame of the initial certificate photo;According to the phase of user's head portrait and the certificate photo rectangle frame
Position zooms in and out user's head portrait, moves processing so that the certificate photo rectangle of user's head portrait and the initial certificate photo
Frame meets the relative position.Such as assume that certificate photo is required to meet the following conditions:(1) certificate photo rectangle frame size for 33mm ×
48mm;(2) user's head portrait horizontal center in certificate photo rectangle frame, face's width of user's head portrait is ± 14 pixel of 207 pixels, is used
The upper edge away from certificate photo is gained fame and fortune for the pixel of 7 pixels~21 in the crown of account picture, and eyes position is away from certificate photo lower edge
For distance not less than 207 pixels, then it is 33mm × 48mm, while to standard to need the rectangle frame size scaling of standard photographs at this time
User's head portrait in photo zooms in and out and moving operation, so that position of user's head portrait in certificate photo rectangle frame meets
Above-mentioned condition (2).Fig. 8 is please referred to, Fig. 8 is the schematic diagram of one embodiment when generating target certificate photo by standard photographs, such as Fig. 8 institutes
Show, during generating target certificate photo by standard photographs, it may be necessary to certificate photo rectangle frame be zoomed in and out, to user's head portrait
It zooms in and out, move and color replacement is carried out to the background of standard photographs, replace with required certificate photo background color.
By above-mentioned steps S301 to S304, certificate photo generation method of the present invention shoots the mark for carrying depth of view information first
Quasi- photo, then detects the certificate photo type of user's selection, and obtains the corresponding certificate photo size of the certificate photo type and card
Part shines background color, carries out Background Recognition, and by the back of the body of the standard photographs to the standard photographs according to the depth of view information later
Scape replaces with the certificate photo background color to obtain initial certificate photo, finally adjusts the initial certificate according to the certificate photo size
According to size to obtain target certificate photo, since the standard photographs in the present invention carry depth of view information, generation target
Can certificate photo background color be replaced with by the user's head portrait and background separation in standard photographs, and by background automatically during certificate photo, it will
Standard photographs adjust the dimensions to certificate photo size, realize the customer satisfaction system certificate photo of quick and easy generation, avoid
User goes to photo studio to shoot every time, and it grasps higher photo disposal technical ability without user, enormously simplifies user's operation, carries
High user experience.
Further, based on above-mentioned first embodiment, the second embodiment of certificate photo generation method of the present invention is proposed.Such as figure
It is the implementing procedure figure of certificate photo generation method second embodiment of the present invention shown in 4.In the present embodiment, according to different need
It asks, the execution sequence of the step in flow chart shown in Fig. 4 can change, and certain steps can be omitted.The certificate photo generation
Method includes:
Step S401 in the shooting process of standard photographs, shows shooting lead-frame to guide use in shooting preview interface
Family adjusts body shape, while carries out 3D detections by dual camera to obtain the depth of view information of the standard photographs, to obtain
Carry the standard photographs of depth of view information.
In the present embodiment, when the camera that is carried by mobile terminal shoots standard photographs, can shooting preview interface into
Row imaging guiding, specifically, showing that shooting lead-frame user to be guided to adjust body shape, passes through display in shooting preview interface
The shooting lead-frame, user understand the body shape of active accommodation oneself, and head portrait is made just to be shown in the shooting lead-frame.It please join
Fig. 9 is examined, Fig. 9 is the schematic diagram of one embodiment when shooting preview interface shows shooting lead-frame.
Step S402, the certificate photo type of detection user's selection, and obtain the corresponding certificate hindsight of the certificate photo type
Very little and certificate photo background color.
Step S403 carries out Background Recognition, and by the standard photographs according to the depth of view information to the standard photographs
Background replace with the certificate photo background color to obtain initial certificate photo.
Step S404, obtains the Skin Color Information of user's head portrait in the standard photographs, and according to the Skin Color Information to
Account picture carries out color adjustment so that user's head portrait complies with standard the colour of skin.
In the present embodiment, in certificate photo generating process, the colour of skin of user's head portrait in standard photographs can be also adjusted,
This is because when user is in the standard photographs color difference shot in different environment, it is possible that user's head portrait is inclined
The various problems such as indigo plant, user's head portrait Huang partially.And certificate photo also has certain requirement generally for the colour of skin, for this purpose, the present embodiment
In can also detect the Skin Color Information of user's head portrait, and it is adjusted so that it meets requirement of the certificate photo for the colour of skin.
Step S405 adjusts the size of the initial certificate photo to obtain target certificate photo according to the certificate photo size.
By above-mentioned steps S401 to S405, certificate photo generation method of the present invention in the shooting process of standard photographs,
Shooting preview interface display shooting lead-frame, while 3D detections are carried out to obtain the depth of field of the standard photographs by dual camera
Information to obtain carrying the standard photographs of depth of view information, later carries out standard photographs on background color replacement, size adjusting and skin
Color adjustment and generate target certificate photo, the present invention by shooting preview interface show shooting lead-frame, user's tune can be guided
Whole body shape, so as to which user be assisted quickly to obtain the preferable standard photographs of effect, while during standard photographs are generated
The colour of skin of user's head portrait is adjusted, the target picture can be made to be more in line with the requirement of certificate photo.
Meanwhile the present invention also proposes a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute
State the certificate photo generation program 400 that can be run on memory and on the processor.As shown in figure 5, it is certificate photo of the present invention
Generate the high-level schematic functional block diagram of 400 first embodiment of program.In the present embodiment, certificate photo generation program 400 can be with
It is divided into one or more modules, for example, in Figure 5, the certificate photo generation program 400 can be divided into standard photographs
Acquisition module 401, certificate photo type selection module 402, background color replacement module 403 and size adjustment module 404.Institute of the present invention
The module of title refers to a series of a kind of acquisition machine program instruction sections that can complete specific function, than obtain machine program more suitable for
Implementation procedure of the software in the mobile terminal is described.Below by just above-mentioned each function module 401-404 concrete function into
Row detailed description.Wherein:
The standard photographs acquisition module 401, for shooting the standard photographs for carrying depth of view information.In the present embodiment,
User is simple, quickly generates certificate photo in order to help, and user needs in advance that shooting standard photographs, the standard photographs refer to that user expires
The higher photo of meaning degree, user's head portrait that standard photographs include can be as the data sources of certificate photo.And in order to realize from
Quick separating prospect (i.e. user's head portrait) and background, need the standard photographs to carry depth of view information in standard photographs.Wherein, the depth of field
Information both can automatically obtain in the shooting process of standard photographs, subsequently can also carry out image procossing to standard photographs and obtain
And it is added in the standard photographs.Preferably, depth of view information obtains automatically in the shooting process of standard photographs in the present embodiment,
Specifically, the acquisition methods of depth of view information include:In the shooting process of standard photographs, by dual camera carry out 3D detection with
The depth of view information of the standard photographs is obtained, and the depth of view information is added to the standard photographs.Due in the prior art
It has been more mature technology, therefore not to depth of view information in the present invention using the method that dual camera obtains depth of view information
Specific acquisition methods are described in detail.
The certificate photo type selection module 402 for detecting the certificate photo type of user's selection, and obtains the certificate
According to the corresponding certificate photo size of type and certificate photo background color.In the present embodiment, various types of certificate photos can be quickly generated,
Middle certificate photo type includes the size and background color difference needed for a variety of and different certificate photos, such as:Identity card picture (22mm ×
32mm), second generation identity card photo (26mm × 32mm), driver's license photo (22mm × 32mm), the small one-inch of black and white (22mm ×
32mm), colored small one-inch (27mm × 38mm), colored big one-inch (40mm × 55mm), common certificate photo (33mm × 48mm), 1
Inch (25mm × 35mm), 2 inches (35mm × 49mm), 3 inches (35mm × 52mm), Hongkong and Macro's pass photo (33mm ×
48mm), visa to America photo (50mm × 50mm), Japanese visa photo (45mm × 45mm), big two cun (35mm × 45mm), shield
Picture (33mm × 48mm), graduate's photo (33mm × 48mm), driving license (21mm × 26mm), licence (60mm × 91mm).
Meanwhile the common background color of certificate photo has white, red, three kinds of blue, the rgb value of three kinds of colors is respectively:White R:255G:
255B:255th, red R:255G:0B:0th, blue R:67G:142B:219.In the present embodiment, user can select to generate any one
The certificate photo of type.Subsequently for convenience, certificate photo generation method is defined as a certificate photo generation in the present invention
APP please refers to Fig. 7, and Fig. 7 is the display interface that certificate photo generates mono- embodiments of APP, as shown in fig. 7, when user opens certificate photo
After generating APP, it can show camera icon and certificate photo generation icon, after user clicks the camera icon, can be adopted into camera
Collect standard photographs, after certificate photo generation APP memories contain an at least standard photographs, user can click certificate photo generation figure
Mark after user clicks certificate photo generation icon, can enter certificate photo type selection interface, multiple certificates can be shown on the interface
It is selected according to type for user, while user also needs to select a standard photographs corresponding to automatically generate the certificate photo type
Certificate photo.
The background color replacement module 403, for carrying out Background Recognition to the standard photographs according to the depth of view information, and
The background of the standard photographs is replaced with into the certificate photo background color to obtain initial certificate photo.In the present embodiment, due to standard
Photo carries depth of view information, therefore certificate photo generation APP can carry out Background Recognition using the depth of view information to standard photographs,
The background and user's head portrait in standard photographs are quickly recognized, and passes through the certificate photo size and certificate of selected certificate photo type
The standard photographs are handled according to background color.Specifically, by the background of the standard photographs replace with the certificate photo background color with
Initial certificate photo is obtained, if the certificate photo type that user selects is Hongkong and Macro's pass photo, and get Hongkong and Macro's pass photo
Certificate photo size be 33mm × 48mm, certificate photo background color is blue, then the background of standard photographs is replaced with into blue, and will the back of the body
The standard photographs that scape obtains after replacing are denoted as initial certificate photo.It should be noted that the present embodiment Plays photo carries scape
Deeply convince breath, therefore can be isolated with quick separating background and user's head portrait which obviate user by image processing softwares such as PS
It during user's head portrait, needs bit by bit to select head portrait profile, operates the problem of complex.
The size adjustment module 404, for the size of the initial certificate photo is adjusted according to the certificate photo size with
Obtain target certificate photo.Continuation is illustrated by taking Hongkong and Macro's pass photo as an example, due to getting the card of Hongkong and Macro's pass photo
Part hindsight cun is 33mm × 48mm, if the size of standard photographs and the certificate photo size are inconsistent, by the size of standard photographs
It is adjusted to 33mm × 48mm.Furthermore, it is necessary to explanation, usual certificate photo size not only includes whole size, i.e. certificate photo square
The size of shape frame also requires position of user's head portrait in certificate photo, for this purpose, in the present embodiment, the certificate photo
Size includes the relative position of certificate photo rectangle frame size and user's head portrait and the certificate photo rectangle frame;It is described according to the card
Part hindsight cun adjusts the size of the initial certificate photo to include the step of obtaining target certificate photo:According to the certificate photo rectangle
Frame size zooms in and out adjusting to the certificate photo rectangle frame of the initial certificate photo;According to user's head portrait and the certificate photo rectangle
User's head portrait is zoomed in and out, moves processing for the relative position of frame so that the certificate of user's head portrait and the initial certificate photo
Meet the relative position according to rectangle frame.Such as assume that certificate photo is required to meet the following conditions:(1) certificate photo rectangle frame size is
33mm×48mm;(2) user's head portrait horizontal center in certificate photo rectangle frame, face's width of user's head portrait is 207 pixel ± 14
The upper edge away from certificate photo is gained fame and fortune for the pixel of 7 pixels~21 in pixel, the crown of user's head portrait, and eyes position is away under certificate photo
The distance at edge is not less than 207 pixels, then it is 33mm × 48mm to need the rectangle frame size scaling of standard photographs at this time, simultaneously
User's head portrait in standard photographs is zoomed in and out and moving operation, so that position of user's head portrait in certificate photo rectangle frame
It puts and meets above-mentioned condition (2).Fig. 8 is please referred to, Fig. 8 is the schematic diagram of one embodiment when generating target certificate photo by standard photographs,
As shown in figure 8, during generating target certificate photo by standard photographs, it may be necessary to certificate photo rectangle frame is zoomed in and out, it is right
User's head portrait zooms in and out, moves and carry out color replacement to the background of standard photographs, replaces with required certificate photo bottom
Color.
By above-mentioned module 401 to 404, certificate photo generation program of the present invention shoots the standard for carrying depth of view information first
Photo, then detects the certificate photo type of user's selection, and obtains the corresponding certificate photo size of the certificate photo type and certificate
According to background color, Background Recognition carries out the standard photographs according to the depth of view information later, and by the background of the standard photographs
The certificate photo background color is replaced with to obtain initial certificate photo, the initial certificate photo is finally adjusted according to the certificate photo size
Size to obtain target certificate photo, since the standard photographs in the present invention carry depth of view information, generation target card
Part can will be marked when shining automatically by the user's head portrait and background separation in standard photographs, and background is replaced with certificate photo background color
Quasi- photo adjusts the dimensions to certificate photo size, realizes the customer satisfaction system certificate photo of quick and easy generation, avoids use
Family goes to photo studio to shoot every time, and it grasps higher photo disposal technical ability without user, enormously simplifies user's operation, improves
User experience.
Further, the first embodiment based on the invention described above certificate photo generation program 400, proposes certificate photo of the present invention
Generate the second embodiment of program 400.Fig. 6 is please referred to, Fig. 6 is the work(that certificate photo of the present invention generates 400 second embodiment of program
Energy module diagram, compared with first embodiment, in the present embodiment, certificate photo generation program 400 further includes shooting guiding module
405 and colour of skin adjustment module 406.In the present embodiment, each function module is described as follows:
The shooting guiding module 405, in the shooting process of standard photographs, showing and shooting in shooting preview interface
Lead-frame with guide user adjust body shape.In the present embodiment, when the camera carried by mobile terminal shoots standard photographs
When, imaging guiding can be carried out in shooting preview interface, specifically, showing shooting lead-frame in shooting preview interface to guide user
Body shape is adjusted, by showing the shooting lead-frame, user understands the body shape of active accommodation oneself, head portrait is made just to show
In the shooting lead-frame.Fig. 9 is please referred to, Fig. 9 is the signal of one embodiment when shooting preview interface shows shooting lead-frame
Figure.
The colour of skin adjustment module 406, for obtaining the Skin Color Information of user's head portrait in the standard photographs, and according to institute
It states Skin Color Information and color adjustment is carried out to user's head portrait so that user's head portrait complies with standard the colour of skin.In the present embodiment, demonstrate,proving
Part is shone in generating process, and also the colour of skin of user's head portrait in standard photographs can be adjusted, this is because when user is in difference
Environment in the obtained standard photographs color of shooting it is different, it is possible that user's head portrait indigo plant, user's head portrait Huang partially etc. partially is various
Problem.And certificate photo also has certain requirement generally for the colour of skin, for this purpose, can also detect the skin of user's head portrait in the present embodiment
Color information, and it is adjusted, so that it meets requirement of the certificate photo for the colour of skin.
By above-mentioned module 401 to 406, certificate photo of the present invention generates program in the shooting process of standard photographs, is clapping
Preview interface display shooting lead-frame is taken the photograph, while 3D detections are carried out by dual camera and are believed with obtaining the depth of field of the standard photographs
Breath to obtain carrying the standard photographs of depth of view information, later carries out standard photographs background color replacement, size adjusting and the colour of skin
It adjusts and generates target certificate photo, the present invention can guide user to adjust by showing shooting lead-frame in shooting preview interface
Body shape, so as to which user be assisted quickly to obtain the preferable standard photographs of effect, and meanwhile it is right during standard photographs are generated
The colour of skin of user's head portrait is adjusted, and the target picture can be made to be more in line with the requirement of certificate photo.
In addition, the present invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium
There is certificate photo to generate program, the certificate photo generation program, which is performed, realizes the certificate photo generation method described in Fig. 3 to Fig. 4
Step.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those elements, and
And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer is fixed
Position server, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of certificate photo generation method, which is characterized in that the certificate photo generation method includes the following steps:
Shooting carries the standard photographs of depth of view information;
The certificate photo type of user's selection is detected, and obtains the corresponding certificate photo size of the certificate photo type and certificate photo bottom
Color;
Background Recognition is carried out, and the background of the standard photographs is replaced with institute to the standard photographs according to the depth of view information
Certificate photo background color is stated to obtain initial certificate photo;
The size of the initial certificate photo is adjusted according to the certificate photo size to obtain target certificate photo.
2. certificate photo generation method as described in claim 1, which is characterized in that described to shoot the standard for carrying depth of view information
The step of photo, includes:
In the shooting process of the standard photographs, 3D detections are carried out by dual camera to obtain the depth of field of the standard photographs
Information, and the depth of view information is added to the standard photographs.
3. certificate photo generation method as described in claim 1, which is characterized in that described to shoot the standard for carrying depth of view information
The step of photo, further includes:
In the shooting process of the standard photographs, shooting lead-frame is shown in shooting preview interface so that user to be guided to adjust body
Form.
4. certificate photo generation method as described in claim 1, which is characterized in that it is described according to the depth of view information to the mark
Quasi- photo carries out Background Recognition, and the background of the standard photographs is replaced with the certificate photo background color to obtain initial certificate photo
The step of after further include:
The Skin Color Information of user's head portrait in the standard photographs is obtained, color tune is carried out to user's head portrait according to the Skin Color Information
It is whole so that user's head portrait complies with standard the colour of skin.
5. certificate photo generation method as described in claim 1, which is characterized in that the certificate photo size includes certificate photo rectangle
The relative position of frame size and user's head portrait and the certificate photo rectangle frame;It is described described just according to certificate photo size adjusting
The size of beginning certificate photo the step of obtaining target certificate photo to include:
Adjusting is zoomed in and out to the certificate photo rectangle frame of the initial certificate photo according to the certificate photo rectangle frame size;
User's head portrait is zoomed in and out according to the relative position of user's head portrait and the certificate photo rectangle frame, move processing with
Certificate photo rectangle frame using account picture and the initial certificate photo meets the relative position.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory
Certificate photo generation program that is upper and can running on the processor, when the certificate photo generation program is performed by the processor
Realize following steps:
Shooting carries the standard photographs of depth of view information;
The certificate photo type of user's selection is detected, and obtains the corresponding certificate photo size of the certificate photo type and certificate photo bottom
Color;
Background Recognition is carried out, and the background of the standard photographs is replaced with institute to the standard photographs according to the depth of view information
Certificate photo background color is stated to obtain initial certificate photo;
The size of the initial certificate photo is adjusted according to the certificate photo size to obtain target certificate photo.
7. mobile terminal as claimed in claim 6, which is characterized in that the processor is additionally operable to perform the certificate photo generation
Program, to realize following steps:
In the shooting process of the standard photographs, 3D detections are carried out by dual camera to obtain the depth of field of the standard photographs
Information, and the depth of view information is added to the standard photographs.
In the shooting process of the standard photographs, shooting lead-frame is shown in shooting preview interface so that user to be guided to adjust body
Form.
8. mobile terminal as claimed in claim 6, which is characterized in that it is described according to the depth of view information to the standard photographs
Background Recognition is carried out, and the background of the standard photographs is replaced with into the step of certificate photo background color is to obtain initial certificate photo
Later, the processor is additionally operable to perform the certificate photo generation program, to realize following steps:
The Skin Color Information of user's head portrait in the standard photographs is obtained, color tune is carried out to user's head portrait according to the Skin Color Information
It is whole so that user's head portrait complies with standard the colour of skin.
9. mobile terminal as claimed in claim 6, which is characterized in that the certificate photo size includes certificate photo rectangle frame size
With the relative position of user's head portrait and the certificate photo rectangle frame;It is described that the initial certificate is adjusted according to the certificate photo size
According to size to include the step of obtaining target certificate photo:
Adjusting is zoomed in and out to the certificate photo rectangle frame of the initial certificate photo according to the certificate photo rectangle frame size;
User's head portrait is zoomed in and out according to the relative position of user's head portrait and the certificate photo rectangle frame, move processing with
Certificate photo rectangle frame using account picture and the initial certificate photo meets the relative position.
10. a kind of computer readable storage medium, which is characterized in that be stored with certificate photo on the computer readable storage medium
Program is generated, the certificate photo generation program is performed the certificate photo generation realized as described in any one of claim 1 to 5
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711428136.2A CN108269230A (en) | 2017-12-26 | 2017-12-26 | Certificate photo generation method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711428136.2A CN108269230A (en) | 2017-12-26 | 2017-12-26 | Certificate photo generation method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108269230A true CN108269230A (en) | 2018-07-10 |
Family
ID=62772571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711428136.2A Pending CN108269230A (en) | 2017-12-26 | 2017-12-26 | Certificate photo generation method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108269230A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109523464A (en) * | 2018-11-21 | 2019-03-26 | 深圳市博纳思信息技术有限公司 | A kind of certificate photograph portrait back gauge intelligent control method |
CN110324531A (en) * | 2019-05-24 | 2019-10-11 | 阿里巴巴集团控股有限公司 | Image Acquisition bootstrap technique and device |
CN110443237A (en) * | 2019-08-06 | 2019-11-12 | 北京旷视科技有限公司 | Certificate recognition methods, device, electronic equipment and computer readable storage medium |
CN110475070A (en) * | 2019-09-11 | 2019-11-19 | 恒信东方文化股份有限公司 | A kind of certificate photo automatic shooting method and device |
CN111131708A (en) * | 2019-12-30 | 2020-05-08 | 联想(北京)有限公司 | Processing method and device |
CN111476146A (en) * | 2020-04-03 | 2020-07-31 | 北京金沙江科技有限公司 | Mobile-terminal-based academic record certification standardized processing method |
CN111476201A (en) * | 2020-04-29 | 2020-07-31 | Oppo广东移动通信有限公司 | Certificate photo manufacturing method, terminal and storage medium |
CN111491106A (en) * | 2020-05-15 | 2020-08-04 | Oppo(重庆)智能科技有限公司 | Shot image processing method and device, mobile terminal and storage medium |
CN112348832A (en) * | 2020-11-05 | 2021-02-09 | Oppo广东移动通信有限公司 | Picture processing method and device, electronic equipment and storage medium |
CN114710624A (en) * | 2022-04-24 | 2022-07-05 | 维沃移动通信有限公司 | Photographing method and photographing apparatus |
CN115457163A (en) * | 2022-11-10 | 2022-12-09 | 六度云计算有限公司 | Machine learning model-based certificate photo synthesis method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0759095A (en) * | 1993-08-10 | 1995-03-03 | Sony Corp | Transmitter and receiver for digital picture signal |
CN102932541A (en) * | 2012-10-25 | 2013-02-13 | 广东欧珀移动通信有限公司 | Mobile phone photographing method and system |
CN103092338A (en) * | 2011-12-07 | 2013-05-08 | 微软公司 | Updating printed content with personalized virtual data |
CN103491307A (en) * | 2013-10-07 | 2014-01-01 | 厦门美图网科技有限公司 | Intelligent selfie method through rear camera |
CN104683723A (en) * | 2013-11-29 | 2015-06-03 | 卡西欧计算机株式会社 | Display system, display device, projection device and program |
CN105791796A (en) * | 2014-12-25 | 2016-07-20 | 联想(北京)有限公司 | Image processing method and image processing apparatus |
CN107197149A (en) * | 2017-06-14 | 2017-09-22 | 深圳传音通讯有限公司 | The generation method and device of certificate photograph |
-
2017
- 2017-12-26 CN CN201711428136.2A patent/CN108269230A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0759095A (en) * | 1993-08-10 | 1995-03-03 | Sony Corp | Transmitter and receiver for digital picture signal |
CN103092338A (en) * | 2011-12-07 | 2013-05-08 | 微软公司 | Updating printed content with personalized virtual data |
CN102932541A (en) * | 2012-10-25 | 2013-02-13 | 广东欧珀移动通信有限公司 | Mobile phone photographing method and system |
CN103491307A (en) * | 2013-10-07 | 2014-01-01 | 厦门美图网科技有限公司 | Intelligent selfie method through rear camera |
CN104683723A (en) * | 2013-11-29 | 2015-06-03 | 卡西欧计算机株式会社 | Display system, display device, projection device and program |
CN105791796A (en) * | 2014-12-25 | 2016-07-20 | 联想(北京)有限公司 | Image processing method and image processing apparatus |
CN107197149A (en) * | 2017-06-14 | 2017-09-22 | 深圳传音通讯有限公司 | The generation method and device of certificate photograph |
Non-Patent Citations (2)
Title |
---|
孙志宜: "《Photoshop图像处理》", 30 June 2013 * |
蒲军 等: "《Photoshop实训教程》", 31 December 2016 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109523464A (en) * | 2018-11-21 | 2019-03-26 | 深圳市博纳思信息技术有限公司 | A kind of certificate photograph portrait back gauge intelligent control method |
CN110324531A (en) * | 2019-05-24 | 2019-10-11 | 阿里巴巴集团控股有限公司 | Image Acquisition bootstrap technique and device |
CN110443237B (en) * | 2019-08-06 | 2023-06-30 | 北京旷视科技有限公司 | Certificate identification method, device, electronic equipment and computer readable storage medium |
CN110443237A (en) * | 2019-08-06 | 2019-11-12 | 北京旷视科技有限公司 | Certificate recognition methods, device, electronic equipment and computer readable storage medium |
CN110475070A (en) * | 2019-09-11 | 2019-11-19 | 恒信东方文化股份有限公司 | A kind of certificate photo automatic shooting method and device |
CN111131708A (en) * | 2019-12-30 | 2020-05-08 | 联想(北京)有限公司 | Processing method and device |
CN111476146A (en) * | 2020-04-03 | 2020-07-31 | 北京金沙江科技有限公司 | Mobile-terminal-based academic record certification standardized processing method |
CN111476201A (en) * | 2020-04-29 | 2020-07-31 | Oppo广东移动通信有限公司 | Certificate photo manufacturing method, terminal and storage medium |
CN111491106A (en) * | 2020-05-15 | 2020-08-04 | Oppo(重庆)智能科技有限公司 | Shot image processing method and device, mobile terminal and storage medium |
CN112348832A (en) * | 2020-11-05 | 2021-02-09 | Oppo广东移动通信有限公司 | Picture processing method and device, electronic equipment and storage medium |
CN114710624A (en) * | 2022-04-24 | 2022-07-05 | 维沃移动通信有限公司 | Photographing method and photographing apparatus |
CN114710624B (en) * | 2022-04-24 | 2024-09-03 | 维沃移动通信有限公司 | Shooting method and shooting device |
CN115457163A (en) * | 2022-11-10 | 2022-12-09 | 六度云计算有限公司 | Machine learning model-based certificate photo synthesis method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108269230A (en) | Certificate photo generation method, mobile terminal and computer readable storage medium | |
CN107592451A (en) | A kind of multi-mode auxiliary photo-taking method, apparatus and computer-readable recording medium | |
CN107093418A (en) | A kind of screen display method, computer equipment and storage medium | |
CN108900790A (en) | Method of video image processing, mobile terminal and computer readable storage medium | |
CN108108704A (en) | Face identification method and mobile terminal | |
CN107317963A (en) | A kind of double-camera mobile terminal control method, mobile terminal and storage medium | |
CN107682627A (en) | A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium | |
CN107948530A (en) | A kind of image processing method, terminal and computer-readable recording medium | |
CN108089791A (en) | Screen resolution method of adjustment, mobile terminal and computer readable storage medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN107730433A (en) | One kind shooting processing method, terminal and computer-readable recording medium | |
CN109639996A (en) | High dynamic scene imaging method, mobile terminal and computer readable storage medium | |
CN108170817A (en) | Differentiation video acquiring method, device and the readable storage medium storing program for executing of photo main body | |
CN108257097A (en) | U.S. face effect method of adjustment, terminal and computer readable storage medium | |
CN107944022A (en) | Picture classification method, mobile terminal and computer-readable recording medium | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN107040723A (en) | A kind of imaging method based on dual camera, mobile terminal and storage medium | |
CN107124552A (en) | A kind of image pickup method, terminal and computer-readable recording medium | |
CN108197206A (en) | Expression packet generation method, mobile terminal and computer readable storage medium | |
CN107995437A (en) | Photograph taking method for polishing and mobile terminal | |
CN108965710A (en) | Method, photo taking, device and computer readable storage medium | |
CN107678650A (en) | A kind of image identification method, mobile terminal and computer-readable recording medium | |
CN108848298A (en) | Picture shooting method, flexible terminal and computer readable storage medium | |
CN107241504A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN108307111A (en) | A kind of zoom photographic method, mobile terminal 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180710 |
|
RJ01 | Rejection of invention patent application after publication |