CN105407275A - Photo synthesizing device and method - Google Patents

Photo synthesizing device and method Download PDF

Info

Publication number
CN105407275A
CN105407275A CN201510731783.5A CN201510731783A CN105407275A CN 105407275 A CN105407275 A CN 105407275A CN 201510731783 A CN201510731783 A CN 201510731783A CN 105407275 A CN105407275 A CN 105407275A
Authority
CN
China
Prior art keywords
photo
portrait
coordinate
added
primary importance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510731783.5A
Other languages
Chinese (zh)
Other versions
CN105407275B (en
Inventor
蔡健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510731783.5A priority Critical patent/CN105407275B/en
Publication of CN105407275A publication Critical patent/CN105407275A/en
Application granted granted Critical
Publication of CN105407275B publication Critical patent/CN105407275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a photo synthesizing device and method. The device comprises a data reading module, a photo selection module and a photo synthesizing module; the data reading module is used read a first position coordinate of a human face in a first photo; the photo selection module is used to, according to the read first position coordinate, select a second photo, an area corresponding to a second position coordinate where a human face locates and an area corresponding to the first position coordinate in the first photo are not overlapped, from a preset photo library; and the photo synthesizing module is used to add a portrait in the second photo to a position corresponding to the second position coordinate in the first picture, or add a portrait in the first photo to a position corresponding to the first position coordinate in the second photo. The invention further provides a photo synthesizing method. According to the photo synthesizing device and method provided in the invention, portrait positions do not need to be adjusted manually, and the photos are intelligently synthesized.

Description

Photo synthesizer and method
Technical field
The present invention relates to photo disposal technical field, particularly relate to a kind of photo synthesizer and method.
Background technology
Along with the development of mobile terminal technology, user is to use mobile phone, the photo demand that the mobile terminals such as panel computer process shooting gets more and more, the personage appeared in the photo of more than two or two is such as wished to synthesize in a photo sometimes, existing implementation is mainly through photo handling software, personage in comparison film carries out scratching figure process, and added in the photo needing synthesis, but, do not occur that in order to make the personage be synthesized in a photo face is overlapping, user is needed manually to adjust the position of personage, this picture synthesis method is intelligent not.
Summary of the invention
The invention provides a kind of photo synthesizer and method, its main purpose is without the need to manually adjusting character positions, intelligent photomontage.
For achieving the above object, the invention provides a kind of photo synthesizer, this photo synthesizer comprises:
Data read module, for reading the primary importance coordinate of face in the first photo;
Module selected by photo, for according to the described primary importance coordinate that reads, chooses nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo from default photo library;
Photo synthesis module, for the portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
Preferably, module selected by described photo, also not overlapping for the region that the region that the second place coordinate choosing face place from default photo library is corresponding is corresponding with the described primary importance coordinate in described first photo, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
Preferably, described photo synthesizer also comprises:
List Generating Module, for when described second photo has multiple, generates photo list and shows described photo list;
Described photo synthesis module, also for when receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
Preferably, described photo synthesis module comprises:
Layer adding device, for when receiving the selection instruction of user based on described photo list, shows described first photo, and on the layer at described first photo place, add the layer with default transparency;
Photo preview unit, for described have in the layer of default transparency show the second photo corresponding to described selection instruction
Photo switch unit, for when receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
Photo synthesis unit, for after receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
Preferably, described photo synthesis unit comprises:
Photo comparison's subelement, for the size of more described second photo and described first photo;
Portrait obtains subelement, if be less than or equal to the size of described first photo for the size of described second photo, then obtains portrait in described second photo and second place coordinate corresponding to described portrait;
Portrait adds subelement, for the described portrait got is added into the position that described in described first photo, second place coordinate is corresponding.
In addition, for achieving the above object, the present invention also provides a kind of picture synthesis method, and this picture synthesis method comprises:
Read the primary importance coordinate of face in the first photo;
According to the described primary importance coordinate read, from default photo library, choose nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo;
Portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
Preferably, the step of nonoverlapping second photo in region that the region that the described second place coordinate choosing face place from default photo library is corresponding is corresponding with the described primary importance coordinate in described first photo comprises:
The region choosing region corresponding to the second place coordinate at face place corresponding with the described primary importance coordinate in described first photo from default photo library is not overlapping, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
Preferably, described portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, before portrait in described first photo being added into the step of the position that primary importance coordinate is corresponding described in described second photo, described picture synthesis method also comprises:
When described second photo has multiple, generate photo list and show described photo list;
Described portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the step that the portrait in described first photo is added into the position that primary importance coordinate is corresponding described in described second photo is comprised:
When receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
Preferably, described when receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the step that the portrait in described first photo is added into the position that primary importance coordinate is corresponding described in described second photo is comprised:
When receiving the selection instruction of user based on described photo list, show described first photo, and on the layer at described first photo place, add the layer with default transparency;
Described have in the layer of default transparency show the second photo corresponding to described selection instruction;
When receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
After receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
Preferably, described portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or the step portrait in described first photo being added into the position that primary importance coordinate is corresponding described in the second photo in described layer comprises:
The size of more described second photo and described first photo;
If the size of described second photo is less than or equal to the size of described first photo, then obtain portrait in described second photo and second place coordinate corresponding to described portrait;
The described portrait got is added into the position that described in described first photo, second place coordinate is corresponding.
The photo synthesizer that the present invention proposes and method, when carrying out photo synthesis, according to the position coordinates of the face in the first photo, select from photo library and directly can synthesize with the first photo and second photo that face can not be caused overlapping, portrait in second photo is added into the position that in the first photo, second place coordinate is corresponding, or the portrait in the first photo is added into the position that in the second photo, primary importance coordinate is corresponding, manually scratch figure without the need to user and generate portrait, and manually adjust the position of portrait, intelligent photomontage.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram of photo synthesizer first embodiment of the present invention;
Fig. 4 is the schematic diagram generating position coordinates in photo synthesizer first embodiment of the present invention;
Fig. 5 is the refinement high-level schematic functional block diagram of photo synthesis module in photo synthesizer second embodiment of the present invention;
Fig. 6 is photo list schematic diagram in photo synthesizer first embodiment of the present invention;
Fig. 7 is the flow chart of picture synthesis method first embodiment of the present invention;
Fig. 8 is the refinement step schematic diagram of photo synthesis step in picture synthesis method second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and radio communication device or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcaster Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digital broadcast apparatus receiving digital broadcast of data broadcast device, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcaster of broadcast singal and above-mentioned digital broadcast apparatus.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global pick device).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 122, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 121 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise pick-up, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 181 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
With reference to the electrical structure block diagram that Fig. 2, Fig. 2 are camera in Fig. 1.
Phtographic lens 1211 is made up of the multiple optical lens for the formation of shot object image, is single-focus lens or zoom lens.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, lens driver 1221 is according to the control signal from lens driving control circuit 1222, control the focal position of phtographic lens 1211, when zoom lens, also can control focal length.Lens driving control circuit 1222 carries out the drived control of lens driver 1221 according to the control command from microcomputer 1217.
Imaging apparatus 1212 is configured with near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211.Imaging apparatus 1212 is for making a video recording to shot object image and obtaining image data.On imaging apparatus 1212 two dimension and be arranged in a matrix the photodiode forming each pixel.Each photodiode produces the opto-electronic conversion electric current corresponding with light income, and this opto-electronic conversion electric current carries out charge accumulation by the capacitor be connected with each photodiode.The front surface of each pixel is configured with the RGB colour filter of Bayer arrangement.
Imaging apparatus 1212 is connected with imaging circuit 1213, this imaging circuit 1213 carries out charge accumulation and controls and picture signal reading control in imaging apparatus 1212, to the picture signal (analog picture signal) of this reading reduce reset noise after carry out waveform shaping, and then carry out gain raising etc. to become suitable signal level.Imaging circuit 1213 is connected with A/D converter 1214, and this A/D converter 1214 pairs of analog picture signals carry out analog-to-digital conversion, to bus 1227 output digital image signal (hereinafter referred to as view data).
Bus 1227 is the transfer paths of the various data that the inside for being transmitted in camera reads or generates.Above-mentioned A/D converter 1214 is connected in bus 1227, be connected to image processor 1215, jpeg processor 1216, microcomputer 1217, SDRAM (SynchronousDynamicrandomaccessmemory in addition, SDRAM) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (LiquidCrystalDisplay, liquid crystal display) driver 1220.
Image processor 1215 carries out OB to the view data of the output based on imaging apparatus 1212 and subtracts each other process, blank level adjustment, color matrix computing, gamma conversion, color difference signal process, noise removal process, changes the various image procossing such as process, edge treated simultaneously.Jpeg processor 1216 by Imagery Data Recording in recording medium 1225 time, according to JPEG compress mode compression from SDRAM1218 read view data.In addition, jpeg processor 1216 carries out the decompression of jpeg image data in order to carry out image reproducing display.When decompressing, read the file that is recorded in recording medium 1225, implement decompression in jpeg processor 1216 after, the view data of decompression to be temporarily stored in SDRAM1218 and to show on LCD1226.H.264 in addition, in the present embodiment, what adopt as image compression decompression mode is JPEG mode, but compressed and decompressed mode is not limited thereto, and certainly can adopt MPEG, TIFF, other the compressed and decompressed mode such as.
Microcomputer 1217 plays the function of the control part as this camera entirety, the unified various process sequences controlling camera.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, this entity or virtual key can be the operational controls such as various load button and various enter keies such as power knob, key of taking pictures, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, large buttons, detect the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217.In addition, be provided with touch panel at the front surface of the LCD1226 as display, detect the touch location of user, this touch location is exported to microcomputer 1217.Microcomputer 1217, according to the testing result of the operating position from operating unit 1223, performs the various process sequences corresponding with the operation of user.
Flash memory 1224 stores the program of the various process sequences for performing microcomputer 1217.Microcomputer 1217 carries out the control of camera entirety according to this program.In addition, flash memory 1224 stores the various adjusted values of camera, and microcomputer 1217 reads adjusted value, carries out the control of camera according to this adjusted value.
SDRAM1218 is can the electricity volatile memory of rewriting for what carry out view data etc. temporarily storing.This SDRAM1218 temporarily stores the view data that exports from A/D converter 1214 and image processor 1215, jpeg processor 1216 etc., to have carried out the view data after processing.
Memory interface 1219 is connected with recording medium 1225, carries out the control by view data and the first-class data writing recording medium 1225 of file be attached in view data and reading from recording medium 1225.Recording medium 1225 be such as can on camera main-body the recording medium such as memory card of disassembled and assembled freely, but being not limited thereto, also can be the hard disk etc. be built in camera main-body.
Lcd driver 1210 is connected with LCD1226, view data after being processed by image processor 1215 is stored in SDRAM1218, when needing display, read the view data that SDRAM1218 stores also to show on LCD1226, or the compressed view data of jpeg processor 1216 is stored in SDRAM1218, when needs show, jpeg processor 1216 reads the compressed view data of SDRAM1218, then decompresses, and the view data after decompressing is shown by LCD1226.
Image display is carried out at the back side that LCD1226 is configured in camera main-body.This LCD1226LCD), but be not limited thereto, also can adopt the various display floaters (LCD1226) such as organic EL, but be not limited thereto, also can adopt the various display floaters such as organic EL.
Based on the structure of above-mentioned mobile terminal hardware configuration, communicator, each embodiment of the inventive method is proposed.
The invention provides a kind of photo synthesizer.
With reference to shown in Fig. 3, it is the schematic diagram of the first embodiment of photo synthesizer of the present invention.
In a first embodiment, this photo synthesizer comprises:
Data read module 10, for reading the primary importance coordinate of face in the first photo.
About the position coordinates of the face in the first photo, in one embodiment, can when detecting that use mobile terminal is taken pictures, often generate a photo, recognition of face is carried out to this photo, when recognizing face, rectangle posting is drawn at human face region, and obtain four angular coordinates of posting, using the position coordinates of four angular coordinates as the face of correspondence, with reference to shown in Fig. 4, when drawing rectangle posting, posting should be little as much as possible, as long as human face region does not exceed posting, be understandable that, this posting is the aid of a reference area, in other embodiments, posting also can be circular, ellipse waits other shapes, after the position coordinates obtaining above-mentioned face, in the photo generated, this posting is sightless, when storage picture, above-mentioned position coordinates is recorded in the attribute information of photo, when making to use this photo to synthesize, data read module 10 can directly read from the attribute information of photo.
In another embodiment, a photo storage path can be set, when detecting in this photo storage path stored in new photo, just to this stored in photo carry out recognition of face, and generate the position coordinates of face, when user carries out photo synthesis, directly can choose photo from this path, or, when detect that user selects be used for region other photos synthesis the first photo in there is no a position coordinates of face time, directly carry out recognition of face and generate position coordinates.
Module 20 selected by photo, for according to the described primary importance coordinate that reads, from default photo library, choose nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo.
For convenience of explanation, user is first selected for the synthesis of photo as the first photo, the position coordinates that its portrait is corresponding is primary importance coordinate, and terminal is the second photo according to the photo that position coordinates is selected, and the position coordinates that its portrait is corresponding is second place coordinate.
After getting the primary importance coordinate in the first photo, photo selects module 20 from default photo library, select the photo that can directly be used for synthesizing, in one embodiment, this default photo library can be depositing of arranging in advance of user for carrying out the path of the photo synthesized with other photos, in other embodiments, also can be the acquiescence photograph album of mobile terminal, when user uses mobile terminal to take pictures, photo all can be stored in this photograph album, be understandable that, user can change the routing information of default photo library according to demand.
Photo selects module 20 to obtain the photo property information preset in photo library, and therefrom obtain the second place coordinate of face, for the photo that can get above-mentioned data, primary importance coordinate in the second place coordinate got and the first photo is contrasted, photo select module 20 to select from default photo library the second photo that the region corresponding with the primary importance coordinate of the face in the first photo, region corresponding to the second place coordinate of face does not have overlap.
Further, in other embodiments, when detect in this default photo library have in the attribute information of photo do not include position coordinates time, can directly carry out recognition of face to these photos and generate position coordinates, can for user for more selecting photo.
Photo synthesis module 30, for the portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
When choosing qualified photo and have multiple from default photo library, in one embodiment, photo synthesis module 30 can Stochastic choice second photo and the first photo synthesize, in other embodiments, photo synthesis module 30 the second photo that the difference of the area in the region that the area in the region that second place coordinate is corresponding is corresponding with primary importance coordinate can be selected minimum and the first photo synthesize.
When photo synthesis module 30 carries out photo synthesis, when the size of the measure-alike of two photos or the first photo is greater than the size of the second photo, it should be noted that, the unit of photo size is herein pixel, photo synthesis module 30 directly can obtain the portrait in the second photo by the mode of scratching figure, and added to position corresponding with the position coordinates of this portrait in original photo in the first photo, and soften handled etc. is carried out to the border of portrait, the mode of concrete stingy figure and superposition synthesis is prior art, does not repeat them here.
When the size of the first photo is less than the size of the second photo, numerous embodiments can be had, below enumerate two kinds of modes, mode one, portrait in second photo carries out scratching figure process by photo synthesis module 30, and add the portrait of acquisition to region in the first photo except human face region, mode two, judge in the second photo, whether portrait exceeds the scope of the first photo according to the position coordinates of face, if do not exceed, photo synthesis module 30 obtains the portrait in the second photo, and added to position corresponding with the position coordinates of this portrait in original photo in the first photo, if exceed, photo synthesis module 30 obtains the portrait in the first photo, and is added to position corresponding with the position coordinates of this portrait in original photo in the second photo.
Further, after by two photo synthesis, directly can demonstrate the photo after synthesis, also can according to the instruction received, using the photo after synthesis as the first photo and according to the position coordinates of portrait in two or more the photo in the photo after synthesis and the area of human face region, from default photo library, screen the photo that can synthesize, by that analogy, the portrait in multiple pictures can be realized to be synthesized in a photo.
The photo synthesizer that the present embodiment proposes, when carrying out photo synthesis, according to the position coordinates of the face in the first photo, select from photo library and directly can synthesize with the first photo and second photo that face can not be caused overlapping, portrait in second photo is added into the position that in the first photo, second place coordinate is corresponding, or the portrait in the first photo is added into the position that in the second photo, primary importance coordinate is corresponding, manually scratch figure without the need to user and generate portrait, and manually adjust the position of portrait, intelligent photomontage.
The first embodiment based on photo synthesizer of the present invention proposes the second embodiment of photo synthesizer of the present invention.In the present embodiment, module 20 selected by photo, also not overlapping for the region that the region that the second place coordinate choosing face place from default photo library is corresponding is corresponding with the described primary importance coordinate in described first photo, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
In order to make the portrait ratio in the photo of synthesis more natural, the region area difference avoiding face corresponding is excessive, photo selects module 20 when carrying out photo and selecting, the region selecting region that the second place coordinate at face place is corresponding corresponding with the primary importance coordinate in the first photo is not overlapping, and the second photo that the difference of the area in the region corresponding with primary importance coordinate, region corresponding to second place coordinate is less than preset value synthesizes.
Further, this device also comprises:
List Generating Module, for when described second photo has multiple, generates photo list and shows described photo list;
Photo synthesis module 30, also for when receiving the selection instruction based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
When satisfactory second photo has multiple, generate list and select voluntarily for user, with reference to shown in Fig. 5.
Photo synthesis module 30 specifically comprises with lower unit:
Layer adding device, for when receiving the selection instruction of user based on described photo list, shows described first photo, and on the layer at described first photo place, add the layer with default transparency;
Photo preview unit, for described have in the layer of default transparency show the second photo corresponding to described selection instruction;
Photo switch unit, for when receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
Photo synthesis unit, for after receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
Before photo synthesis, first carry out preview, layer adding device adds the layer that has default transparency in the layer at the first photo place, photo preview unit shows the second photo in this layer, for user's preview, to judge whether synthetic effect reaches the demand of oneself, if not, then can not synthesize, then reselect.If when receiving user based on superposition photo or the confirmation instruction of preset control, the second photo shown in current transparent layer and the first photo are synthesized.
In photo list, choose satisfied photo for the ease of user, user can trigger photo switching command, from photo list, switch photo in order, and display preview effect, selects.Such as, can slide on a display screen left and right switch, or added by volume, subtract key about switch, or, back is provided with to the mobile terminal of pressure sensor, finger horizontally slips at mobile terminal back, switches photo in order, until choose satisfied photo from photo list, and this selection mode is when carrying out the selection of photo, slide relative to touch screen, can not block photo, concrete selection mode and the gesture of touch control operation can be pre-set according to demand by user.
The photo synthesizer that the present embodiment proposes, before photo synthesis, first shows the effect of synthesis in the mode of preview, and can switch the photo preview display in photo list easily, and user can be made to choose oneself satisfied photo quickly.
With reference to shown in Fig. 6, the 3rd embodiment of photo synthesizer of the present invention is proposed based on the first embodiment of photo synthesizer of the present invention or the second embodiment.In the present embodiment, photo synthesis module 30 comprises with lower unit:
Photo comparison's unit 31, for the size of more described second photo and described first photo;
Portrait acquiring unit 32, if the size being less than or equal to described first photo for the size of described second photo, then obtains portrait in described second photo and second place coordinate corresponding to described portrait;
Portrait adding device 33, for being added into the described portrait got the position that described in described first photo, second place coordinate is corresponding.
Size due to the photo stored in photo library differs, and to establish a capital be identical, in the present embodiment, in the process of photomontage, photo comparison's unit 31 first compares the size of the second photo and the first photo, the relatively lateral dimension of photo, if the lateral dimension of the second photo is less than or equal to the lateral dimension of the first photo, then portrait acquiring unit 32 obtains portrait in the second photo and position coordinates corresponding to portrait, and portrait is added into position corresponding to position coordinates in the first photo by portrait adding device 33.
Further, portrait acquiring unit 32, if the size being also greater than described first photo for the size of described second photo, then obtains the portrait in described first photo;
Portrait adding device 33, also for described portrait being added into position corresponding to described position coordinates in described second photo.
If the lateral dimension of the second photo is greater than the lateral dimension of the first photo, then the portrait in the first photo is blended in the second photo.
The photo synthesizer that the present embodiment proposes, in the second photo and the first photo, selects the photo photo as a setting that size is larger, is synthesized in this background pictures by the portrait in other photos, realizes better synthetic effect.
The present invention also proposes a kind of picture synthesis method.
With reference to shown in Fig. 7, it is the flow chart of picture synthesis method first embodiment of the present invention.
In a first embodiment, this picture synthesis method comprises:
Step S10, reads the primary importance coordinate of face in the first photo.
About the position coordinates of the face in the first photo, in one embodiment, can when detecting that use mobile terminal is taken pictures, often generate a photo, recognition of face is carried out to this photo, when recognizing face, rectangle posting is drawn at human face region, and obtain four angular coordinates of posting, using the position coordinates of four angular coordinates as the face of correspondence, with reference to shown in Fig. 4, when drawing rectangle posting, posting should be little as much as possible, as long as human face region does not exceed posting, be understandable that, this posting is the aid of a reference area, in other embodiments, posting also can be circular, ellipse waits other shapes, after the position coordinates obtaining above-mentioned face, in the photo generated, this posting is sightless, when storage picture, above-mentioned position coordinates is recorded in the attribute information of photo, when making to use this photo to synthesize, can directly read from the attribute information of photo.
In another embodiment, a photo storage path can be set, when detecting in this photo storage path stored in new photo, just to this stored in photo carry out recognition of face, and generate the position coordinates of face, when user carries out photo synthesis, directly can choose photo from this path, or, when detect that user selects be used for region other photos synthesis the first photo in there is no a position coordinates of face time, directly carry out recognition of face and generate position coordinates.
Step S20, according to the described primary importance coordinate read, chooses nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo from default photo library.
For convenience of explanation, user is first selected for the synthesis of photo as the first photo, the position coordinates that its portrait is corresponding is primary importance coordinate, and terminal is the second photo according to the photo that position coordinates is selected, and the position coordinates that its portrait is corresponding is second place coordinate.
After getting the primary importance coordinate in the first photo, the photo that can directly be used for synthesizing is selected from default photo library, in one embodiment, this default photo library can be depositing of arranging in advance of user for carrying out the path of the photo synthesized with other photos, in other embodiments, also can be the acquiescence photograph album of mobile terminal, when user uses mobile terminal to take pictures, photo all can be stored in this photograph album, be understandable that, user can change the routing information of default photo library according to demand.
Obtain the photo property information preset in photo library, and therefrom obtain the second place coordinate of face, for the photo that can get above-mentioned data, contrasted by primary importance coordinate in the second place coordinate got and the first photo, the region selecting region corresponding to the second place coordinate of face corresponding with the primary importance coordinate of the face in the first photo from default photo library does not have the second overlapping photo.
Further, in other embodiments, when detect in this default photo library have in the attribute information of photo do not include position coordinates time, can directly carry out recognition of face to these photos and generate position coordinates, can for user for more selecting photo.
Step S30, is added into the portrait in described second photo the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
When choosing qualified photo and have multiple from default photo library, in one embodiment, can Stochastic choice second photo and the first photo synthesize, in other embodiments, the second minimum photo of the difference of the area in the area in region that second place coordinate the is corresponding region corresponding with primary importance coordinate and the first photo also can be selected to synthesize.
When carrying out photo synthesis, when the size of the measure-alike of two photos or the first photo is greater than the size of the second photo, it should be noted that, the unit of photo size is herein pixel, the portrait in the second photo directly can be obtained by the mode of scratching figure, and added to position corresponding with the position coordinates of this portrait in original photo in the first photo, and soften handled etc. is carried out to the border of portrait, the mode of concrete stingy figure and superposition synthesis is prior art, does not repeat them here.
When the size of the first photo is less than the size of the second photo, numerous embodiments can be had, below enumerate two kinds of modes, mode one, portrait in second photo is carried out scratch figure process, and add the portrait of acquisition to region in the first photo except human face region, mode two, judge in the second photo, whether portrait exceeds the scope of the first photo according to the position coordinates of face, if do not exceed, then obtain the portrait in the second photo, and added to position corresponding with the position coordinates of this portrait in original photo in the first photo; If exceed, then obtain the portrait in the first photo, and added to position corresponding with the position coordinates of this portrait in original photo in the second photo.
Further, after by two photo synthesis, directly can demonstrate the photo after synthesis, also can according to the instruction received, using the photo after synthesis as the first photo and according to the position coordinates of portrait in two or more the photo in the photo after synthesis and the area of human face region, from default photo library, screen the photo that can synthesize, by that analogy, the portrait in multiple pictures can be realized to be synthesized in a photo.
The picture synthesis method that the present embodiment proposes, when carrying out photo synthesis, according to the position coordinates of the face in the first photo, select from photo library and directly can synthesize with the first photo and second photo that face can not be caused overlapping, portrait in second photo is added into the position that in the first photo, second place coordinate is corresponding, or the portrait in the first photo is added into the position that in the second photo, primary importance coordinate is corresponding, manually scratch figure without the need to user and generate portrait, and manually adjust the position of portrait, intelligent photomontage.
The first embodiment based on picture synthesis method of the present invention proposes the second embodiment of picture synthesis method of the present invention.In the present embodiment, step S20 comprises:
The region choosing region corresponding to the second place coordinate at face place corresponding with the described primary importance coordinate in described first photo from default photo library is not overlapping, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
In order to make the portrait ratio in the photo of synthesis more natural, the region area difference avoiding face corresponding is excessive, when carrying out photo and selecting, the region selecting region that the second place coordinate at face place is corresponding corresponding with the primary importance coordinate in the first photo is not overlapping, and the second photo that the difference of the area in the region corresponding with primary importance coordinate, region corresponding to second place coordinate is less than preset value synthesizes.
Further, before step S30, the method also comprises:
When described second photo has multiple, generate photo list and show described photo list;
When receiving the selection instruction based on described photo list, perform step S30.
When satisfactory second photo has multiple, generate list and select voluntarily for user, with reference to shown in Fig. 5.
Step S30 specifically comprises following refinement step:
When receiving the selection instruction of user based on described photo list, show described first photo, and on the layer at described first photo place, add the layer with default transparency;
Described have in the layer of default transparency show the second photo corresponding to described selection instruction;
When receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
After receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
Before photo synthesis, first carry out preview, the layer at the first photo place is added the layer that has default transparency, and the second photo is shown in this layer, for user's preview, to judge whether synthetic effect reaches the demand of oneself, if not, then can not synthesize, then reselect.If when receiving user based on superposition photo or the confirmation instruction of preset control, the second photo shown in current transparent layer and the first photo are synthesized.
In photo list, choose satisfied photo for the ease of user, user can trigger photo switching command, from photo list, switch photo in order, and display preview effect, selects.Such as, can slide on a display screen left and right switch, or added by volume, subtract key about switch, or, back is provided with to the mobile terminal of pressure sensor, finger horizontally slips at mobile terminal back, switches photo in order, until choose satisfied photo from photo list, and this selection mode is when carrying out the selection of photo, slide relative to touch screen, can not block photo, concrete selection mode and the gesture of touch control operation can be pre-set according to demand by user.
The picture synthesis method that the present embodiment proposes, before photo synthesis, first shows the effect of synthesis in the mode of preview, and can switch the photo preview display in photo list easily, and user can be made to choose oneself satisfied photo quickly.
With reference to shown in Fig. 8, the 3rd embodiment of picture synthesis method of the present invention is proposed based on the first embodiment of picture synthesis method of the present invention or the second embodiment.In the present embodiment, step S30 comprises following refinement step:
Step S31, the size of more described second photo and described first photo;
Step S32, if the size of described second photo is less than or equal to the size of described first photo, then obtains portrait in described second photo and second place coordinate corresponding to described portrait;
Step S33, is added into the described portrait got the position that described in described first photo, second place coordinate is corresponding.
Size due to the photo stored in photo library differs, and to establish a capital be identical, in the present embodiment, in the process of photomontage, first compare the size of the second photo and the first photo, the relatively lateral dimension of photo, if the lateral dimension of the second photo is less than or equal to the lateral dimension of the first photo, then obtain portrait in the second photo and position coordinates corresponding to portrait, portrait is added into the position that position coordinates in the first photo is corresponding.
Further, after step s 32, step S30 also comprises:
If the size of described second photo is greater than the size of described first photo, then obtain the portrait in described first photo;
Described portrait is added into the position that described position coordinates in described second photo is corresponding.
If the lateral dimension of the second photo is greater than the lateral dimension of the first photo, then the portrait in the first photo is blended in the second photo.
The picture synthesis method that the present embodiment proposes, in the second photo and the first photo, selects the photo photo as a setting that size is larger, is synthesized in this background pictures by the portrait in other photos, realizes better synthetic effect.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a photo synthesizer, is characterized in that, described photo synthesizer comprises:
Data read module, for reading the primary importance coordinate of face in the first photo;
Module selected by photo, for according to the described primary importance coordinate that reads, chooses nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo from default photo library;
Photo synthesis module, for the portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
2. photo synthesizer according to claim 1, it is characterized in that, module selected by described photo, also not overlapping for the region that the region that the second place coordinate choosing face place from default photo library is corresponding is corresponding with the described primary importance coordinate in described first photo, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
3. photo synthesizer according to claim 2, is characterized in that, described photo synthesizer also comprises:
List Generating Module, for when described second photo has multiple, generates photo list and shows described photo list;
Described photo synthesis module, also for when receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
4. photo synthesizer according to claim 3, is characterized in that, described photo synthesis module comprises:
Layer adding device, for when receiving the selection instruction of user based on described photo list, shows described first photo, and on the layer at described first photo place, add the layer with default transparency;
Photo preview unit, for described have in the layer of default transparency show the second photo corresponding to described selection instruction
Photo switch unit, for when receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
Photo synthesis unit, for after receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
5. photo synthesizer according to claim 1, is characterized in that, described photo synthesis module comprises:
Photo comparison's unit, for the size of more described second photo and described first photo;
Portrait acquiring unit, if the size being less than or equal to described first photo for the size of described second photo, then obtains portrait in described second photo and second place coordinate corresponding to described portrait;
Portrait adding device, for being added into the described portrait got the position that described in described first photo, second place coordinate is corresponding.
6. a picture synthesis method, is characterized in that, described picture synthesis method comprises:
Read the primary importance coordinate of face in the first photo;
According to the described primary importance coordinate read, from default photo library, choose nonoverlapping second photo in region that region corresponding to the second place coordinate at face place is corresponding with the described primary importance coordinate in described first photo;
Portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
7. picture synthesis method according to claim 6, it is characterized in that, the step of nonoverlapping second photo in region that the region that the described second place coordinate choosing face place from default photo library is corresponding is corresponding with the described primary importance coordinate in described first photo comprises:
The region choosing region corresponding to the second place coordinate at face place corresponding with the described primary importance coordinate in described first photo from default photo library is not overlapping, and the difference of the area in the region corresponding with described primary importance coordinate, region corresponding to described second place coordinate is less than the second photo of preset value.
8. picture synthesis method according to claim 7, it is characterized in that, described portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, before portrait in described first photo being added into the step of the position that primary importance coordinate is corresponding described in described second photo, described picture synthesis method also comprises:
When described second photo has multiple, generate photo list and show described photo list;
Described portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the step that the portrait in described first photo is added into the position that primary importance coordinate is corresponding described in described second photo is comprised:
When receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in described second photo, primary importance coordinate is corresponding.
9. picture synthesis method according to claim 8, it is characterized in that, described when receiving the selection instruction of user based on described photo list, portrait in described second photo is added into the position that described in described first photo, second place coordinate is corresponding, or, the step that the portrait in described first photo is added into the position that primary importance coordinate is corresponding described in described second photo is comprised:
When receiving the selection instruction of user based on described photo list, show described first photo, and on the layer at described first photo place, add the layer with default transparency;
Described have in the layer of default transparency show the second photo corresponding to described selection instruction;
When receiving photo switching command, described have in the layer of default transparency show the second photo corresponding with described photo switching command in described just list;
After receiving the confirmation instruction, portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or, the portrait in described first photo is added into the position that described in the second photo in described layer, primary importance coordinate is corresponding.
10. picture synthesis method according to claim 6, it is characterized in that, described portrait in the second photo in described layer is added into the position that described in described first photo, second place coordinate is corresponding, or the step portrait in described first photo being added into the position that primary importance coordinate is corresponding described in the second photo in described layer comprises:
The size of more described second photo and described first photo;
If the size of described second photo is less than or equal to the size of described first photo, then obtain portrait in described second photo and second place coordinate corresponding to described portrait;
The described portrait got is added into the position that described in described first photo, second place coordinate is corresponding.
CN201510731783.5A 2015-10-30 2015-10-30 Photo synthesizer and method Active CN105407275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510731783.5A CN105407275B (en) 2015-10-30 2015-10-30 Photo synthesizer and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510731783.5A CN105407275B (en) 2015-10-30 2015-10-30 Photo synthesizer and method

Publications (2)

Publication Number Publication Date
CN105407275A true CN105407275A (en) 2016-03-16
CN105407275B CN105407275B (en) 2019-03-22

Family

ID=55472495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510731783.5A Active CN105407275B (en) 2015-10-30 2015-10-30 Photo synthesizer and method

Country Status (1)

Country Link
CN (1) CN105407275B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018324A (en) * 2017-03-27 2017-08-04 努比亚技术有限公司 A kind of picture synthesis method and device
CN107483837A (en) * 2017-09-29 2017-12-15 上海展扬通信技术有限公司 A kind of image pickup method and filming apparatus of the photo based on smart machine
CN108366193A (en) * 2017-01-26 2018-08-03 中兴通讯股份有限公司 A kind of image processing method and electronic equipment
CN110674819A (en) * 2019-12-03 2020-01-10 捷德(中国)信息科技有限公司 Card surface picture detection method, device, equipment and storage medium
CN111586296A (en) * 2020-04-27 2020-08-25 北京小米移动软件有限公司 Image capturing method, image capturing apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000688A (en) * 2007-01-15 2007-07-18 浙江大学 Method for automatic photomotage of multi-face
US7973853B2 (en) * 2001-09-18 2011-07-05 Ricoh Company, Limited Image pickup device, automatic focusing method, automatic exposure method calculating an exposure based on a detected face
CN103747180A (en) * 2014-01-07 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Photo shooting method and photographing terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7973853B2 (en) * 2001-09-18 2011-07-05 Ricoh Company, Limited Image pickup device, automatic focusing method, automatic exposure method calculating an exposure based on a detected face
CN101000688A (en) * 2007-01-15 2007-07-18 浙江大学 Method for automatic photomotage of multi-face
CN103747180A (en) * 2014-01-07 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Photo shooting method and photographing terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366193A (en) * 2017-01-26 2018-08-03 中兴通讯股份有限公司 A kind of image processing method and electronic equipment
CN107018324A (en) * 2017-03-27 2017-08-04 努比亚技术有限公司 A kind of picture synthesis method and device
CN107018324B (en) * 2017-03-27 2020-07-28 努比亚技术有限公司 Photo synthesis method and device
CN107483837A (en) * 2017-09-29 2017-12-15 上海展扬通信技术有限公司 A kind of image pickup method and filming apparatus of the photo based on smart machine
CN110674819A (en) * 2019-12-03 2020-01-10 捷德(中国)信息科技有限公司 Card surface picture detection method, device, equipment and storage medium
WO2021110090A1 (en) * 2019-12-03 2021-06-10 Giesecke+Devrient Mobile Security Gmbh Method, apparatus, device and storage medium for detecting card surface picture
CN111586296A (en) * 2020-04-27 2020-08-25 北京小米移动软件有限公司 Image capturing method, image capturing apparatus, and storage medium
US11252341B2 (en) 2020-04-27 2022-02-15 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for shooting image, and storage medium

Also Published As

Publication number Publication date
CN105407275B (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN105262951A (en) Mobile terminal having binocular camera and photographing method
CN105100481A (en) Shooting method and apparatus, and mobile terminal
CN104683697A (en) Shooting parameter adjusting method and device
CN105516423A (en) Mobile terminal, data transmission system and mobile terminal shoot method
CN105430295A (en) Device and method for image processing
CN105096241A (en) Face image beautifying device and method
CN104767941A (en) Photography method and device
CN105120164B (en) The processing means of continuous photo and method
CN105578056A (en) Photographing terminal and method
CN104660903A (en) Shooting method and shooting device
CN104639837A (en) Method and device for setting shooting parameters
CN105242844A (en) Terminal and camera parameter setting method
CN105404484A (en) Terminal screen splitting device and method
CN105245777A (en) Method and device for generating video image
CN105183272A (en) Desktop icon arrangement method and apparatus
CN104902185A (en) Shooting method and shooting device
CN105335458A (en) Picture previewing method and apparatus
CN105407275A (en) Photo synthesizing device and method
CN104811554A (en) Method and terminal for switching camera modes
CN105187724A (en) Mobile terminal and method for processing images
CN104822099A (en) Video packaging method and mobile terminal
CN105681894A (en) Device and method for displaying video file
CN104796625A (en) Picture synthesizing method and device
CN105163035A (en) Mobile terminal shooting system and mobile terminal shooting method
CN105407295A (en) Mobile terminal photographing device and method

Legal Events

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