CN105407275B - Photo synthesizer and method - Google Patents

Photo synthesizer and method Download PDF

Info

Publication number
CN105407275B
CN105407275B CN201510731783.5A CN201510731783A CN105407275B CN 105407275 B CN105407275 B CN 105407275B CN 201510731783 A CN201510731783 A CN 201510731783A CN 105407275 B CN105407275 B CN 105407275B
Authority
CN
China
Prior art keywords
photo
coordinate
portrait
position coordinate
added
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510731783.5A
Other languages
Chinese (zh)
Other versions
CN105407275A (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 kind of photo synthesizer, which includes: data read module, for reading the first position coordinate of face in the first photo;Photo selecting module, for the corresponding region of second position coordinate nonoverlapping second photo in region corresponding with the first position coordinate in the first photo according to the first position coordinate read, where choosing face in default photo library;Photo synthesis module, for the portrait in the second photo to be added to coordinate corresponding position in the second position in the first photo, alternatively, the portrait in the first photo is added to coordinate corresponding position in first position in the second photo.The present invention also proposes a kind of picture synthesis method.Photo synthesizer proposed by the present invention and method, without manually adjusting portrait position, intelligent photomontage.

Description

Photo synthesizer and method
Technical field
The present invention relates to photo processing technology field more particularly to a kind of photo synthesizer and methods.
Background technique
With the development of mobile terminal technology, user handles shooting to the mobile terminals such as mobile phone, tablet computer are used Photo demand is more and more, such as the personage for wishing will appear in sometimes in two or two or more photos synthesizes at one In photo, existing implementation mainly passes through photo handling software, carries out FIG pull handle to the personage in photo, and added It is added in the photo for needing to synthesize, still, in order to make the personage being synthesized in a photo not occur face overlapping, needs user The position of personage is manually adjusted, this picture synthesis method is not smart enough.
Summary of the invention
The present invention provides a kind of photo synthesizer and method, main purpose without manually adjusting character positions, Intelligent photomontage.
To achieve the above object, the present invention provides a kind of photo synthesizer, which includes:
Data read module, for reading the first position coordinate of face in the first photo;
Photo selecting module, for choosing face from default photo library according to the first position coordinate read The corresponding region of second position coordinate at place region corresponding with the first position coordinate in first photo does not weigh The second folded photo;
Photo synthesis module, for the portrait in second photo to be added to second described in first photo The corresponding position of coordinate is set, alternatively, the portrait in first photo is added to first position described in second photo The corresponding position of coordinate.
Preferably, the photo selecting module is also used to sit from the second position where choosing face in default photo library It marks corresponding region region corresponding with the first position coordinate in first photo not to be overlapped, and the second position The difference of the area in the corresponding region of coordinate and the corresponding region of the first position coordinate is less than the second photo of preset value.
Preferably, the photo synthesizer further include:
List Generating Module, for when second photo has multiple, generating photo list and showing the photo column Table;
The photo synthesis module is also used to when receiving selection instruction of the user based on the photo list, by institute It states the portrait in the second photo and is added to coordinate corresponding position in the second position described in first photo, alternatively, will be described Portrait in first photo is added to coordinate corresponding position in first position described in second photo.
Preferably, the photo synthesis module includes:
Figure layer adding unit shows described for when receiving selection instruction of the user based on the photo list One photo, and addition has the figure layer of default transparency on the figure layer where first photo;
Photo preview unit, for showing the selection instruction corresponding the in the figure layer with default transparency Two photos
Photo switch unit, for when receiving photo switching command, in the figure layer with default transparency Show the second photo corresponding with the photo switching command in the picture list;
Photo synthesis unit, for after receiving confirmation instruction, the portrait in the second photo in the figure layer to be added Coordinate corresponding position in the second position described in first photo is added to, alternatively, the portrait in first photo is added To coordinate corresponding position in first position described in the second photo in the figure layer.
Preferably, the photo synthesis unit includes:
Photo comparison's subelement, the size for second photo and first photo;
Portrait obtains subelement, if being less than or equal to the size of first photo for the size of second photo, Then obtain the portrait and the corresponding second position coordinate of the portrait in second photo;
Portrait adds subelement, and the portrait for will acquire is added to the second position described in first photo The corresponding position of coordinate.
In addition, to achieve the above object, the present invention also provides a kind of picture synthesis method, which includes:
Read the first position coordinate of face in the first photo;
Second position coordinate according to the first position coordinate read, where choosing face in default photo library Corresponding region nonoverlapping second photo in region corresponding with the first position coordinate in first photo;
Portrait in second photo is added to coordinate corresponding position in the second position described in first photo, Alternatively, the portrait in first photo is added to coordinate corresponding position in first position described in second photo.
Preferably, the corresponding region of second position coordinate and described the where choosing face in default photo library The step of nonoverlapping second photo in the corresponding region of the first position coordinate in one photo includes:
In the corresponding region of second position coordinate and first photo where choosing face in default photo library The corresponding region of the first position coordinate is not overlapped, and the corresponding region of the second position coordinate and the first position are sat The difference for marking the area in corresponding region is less than the second photo of preset value.
Preferably, the portrait by second photo is added to second position coordinate described in first photo Corresponding position, alternatively, the portrait in first photo is added to first position coordinate pair described in second photo Before the step of position answered, the picture synthesis method further include:
When second photo there are multiple, generates photo list and show the photo list;
It is corresponding that the portrait by second photo is added to second position coordinate described in first photo Position, alternatively, the portrait in first photo is added to coordinate corresponding position in first position described in second photo The step of setting include:
When receiving selection instruction of the user based on the photo list, the portrait in second photo is added to Coordinate corresponding position in the second position described in first photo, alternatively, the portrait in first photo is added to institute State coordinate corresponding position in first position described in the second photo.
Preferably, described when receiving selection instruction of the user based on the photo list, it will be in second photo Portrait be added to coordinate corresponding position in the second position described in first photo, alternatively, by first photo Portrait is added to the step of corresponding position of first position coordinate described in second photo and includes:
When receiving selection instruction of the user based on the photo list, first photo is shown, and described the Addition has the figure layer of default transparency on figure layer where one photo;
Corresponding second photo of the selection instruction is shown in the figure layer with default transparency;
When receiving photo switching command, shown in the picture list in the figure layer with default transparency The second photo corresponding with the photo switching command;
After receiving confirmation instruction, the portrait in the second photo in the figure layer is added in first photo The corresponding position of the second position coordinate, alternatively, the portrait in first photo to be added to second in the figure layer The corresponding position in first position coordinate described in photo.
Preferably, the portrait in second photo by the figure layer is added to second described in first photo The corresponding position of position coordinates, alternatively, the portrait in first photo is added to institute in the second photo in the figure layer The step of stating first position coordinate corresponding position include:
Compare the size of second photo Yu first photo;
If the size of second photo is less than or equal to the size of first photo, obtain in second photo Portrait and the corresponding second position coordinate of the portrait;
The portrait that will acquire is added to coordinate corresponding position in the second position described in first photo.
Photo synthesizer proposed by the present invention and method, when carrying out photo synthesis, according to the face in the first photo Position coordinates, selected from photo library can directly be synthesized with the first photo without will cause face it is Chong Die second shine Portrait in second photo is added to coordinate corresponding position in the second position in the first photo by piece, or will be in the first photo Portrait be added to coordinate corresponding position in first position in the second photo, without user manually scratch figure generate portrait, and manually Adjust the position of portrait, intelligent photomontage.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the functional block diagram of photo synthesizer first embodiment of the present invention;
Fig. 4 is the schematic diagram that position coordinates are generated in photo synthesizer first embodiment of the present invention;
Fig. 5 is the refinement the 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 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.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcasters.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digital broadcast apparatus receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcasters and above-mentioned digital broadcast apparatus of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global pick device).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121 Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122 Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration of mobile terminal 100 or by fast movement and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include 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 input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include sound pick-up, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
It is the electrical structure block diagram of camera in Fig. 1 referring to Fig. 2, Fig. 2.
Phtographic lens 1211 is made of the multiple optical lens for being used to form shot object image, is single-focus lens or varifocal mirror Head.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, and lens driver 1221 According to the control signal from lens driving control circuit 1222, the focal position of phtographic lens 1211 is controlled, in zoom lens In the case of, it also can control focal length.Lens driving control circuit 1222 is according to the control command from microcomputer 1217 Carry out the drive control of lens driver 1221.
It is configured with and takes the photograph near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211 Element 1212.Photographing element 1212 is for imaging shot object image and obtaining image data.On photographing element 1212 Two dimension and be arranged in a matrix the photodiode for constituting each pixel.Each photodiode generates photoelectricity corresponding with light income Switching current, the photoelectric conversion electric current carry out charge accumulation by the capacitor connecting with each photodiode.The preceding table of each pixel Face is configured with the RGB colour filter of bayer arrangement.
Photographing element 1212 is connect with imaging circuit 1213, which carries out charge in photographing element 1212 Accumulation control and picture signal read control, carry out after reducing resetting noise to the picture signal (analog picture signal) of the reading Waveform shaping, and then gain raising etc. is carried out to become signal level appropriate.Imaging circuit 1213 and A/D converter 1214 connect It connects, which carries out analog-to-digital conversion to analog picture signal, (following to 1227 output digital image signal of bus Referred to as image data).
Bus 1227 is the transmitting path for being transmitted in the various data that the inside of camera reads or generates.In bus 1227 are connected to above-mentioned A/D converter 1214, are additionally connected to image processor 1215, jpeg processor 1216, microcomputer Calculation machine 1217, SDRAM (Synchronous Dynamic random access memory, Synchronous Dynamic Random Access Memory) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display Device) driver 1220.
Image processor 1215 carries out OB to the image data of the output based on photographing element 1212 and subtracts each other processing, white balance Adjustment, gamma conversion, colour difference signal processing, noise removal process, changes processing, edge processing etc. respectively at color matrix operation simultaneously Kind image procossing.Jpeg processor 1216 is when by Imagery Data Recording in recording medium 1225, according to JPEG compression mode pressure Contract the image data read from SDRAM1218.In addition, jpeg processor 1216 shows to carry out image reproducing and carries out JPEG The decompression of image data.When unziping it, the file being recorded in recording medium 1225 is read, in jpeg processor 1216 In implement decompression after, the image data of decompression is temporarily stored in SDRAM1218 and is carried out on LCD1226 Display.In addition, in the present embodiment, as compression of images decompression mode using JPEG mode, however Compress softwares Contracting mode is without being limited thereto, it is of course possible to using MPEG, TIFF, other compressed and decompressed modes such as H.264.
Microcomputer 1217 plays the function of the control unit as camera entirety, is uniformly controlled the various processing of camera Sequence.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but is not limited to physical button or virtual key, and the entity or virtual key can be electricity Source button, camera button, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, The operational controls such as the various input buttons such as large buttons and various enter keys, detect the mode of operation of these operational controls,.
It will test result to export to microcomputer 1217.In addition, the front surface in the LCD1226 as display is equipped with Touch panel detects the touch location of user, which is exported to microcomputer 1217.Microcomputer 1217 According to the testing result of the operating position from operating unit 1223, various processing sequences corresponding with the operation of user are executed.
Flash memory 1224 stores the program for executing the various processing sequences of microcomputer 1217.Microcomputer 1217 The control of camera entirety is carried out according to the program.In addition, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217 Adjusted value is read, the control of camera is carried out according to the adjusted value.
SDRAM1218 be for image data etc. temporarily stored can electricity rewrite volatile memory.It should SDRAM1218 temporarily stores the image data exported from A/D converter 1214 and in image processor 1215, jpeg processor 1216 it is equal in the image data that carried out that treated.
Memory interface 1219 is connect with recording medium 1225, is carried out image data and the text being attached in image data First-class control data write-in recording medium 1225 and read from recording medium 1225 of part.Recording medium 1225 is, for example, can The recording mediums such as memory card of disassembled and assembled freely on camera main-body, however it is without being limited thereto, it is also possible to be built in camera main-body In hard disk etc..
LCD driver 1210 is connect with LCD1226, will treated that image data is stored in by image processor 1215 SDRAM1218 when needing to show, reads the image data of SDRAM1218 storage and shows on LCD1226, alternatively, at JPEG The compressed image data of reason device 1216 is stored in SDRAM1218, and when needing to show, jpeg processor 1216 is read The compressed image data of SDRAM1218, then unzip it, the image data after decompression is carried out by LCD1226 Display.
LCD1226 configuration performs image display at the back side of camera main-body.The LCD1226LCD), however it is without being limited thereto, The various display panels (LCD1226) such as organic EL can be used, however it is without being limited thereto, it can also be using various displays such as organic EL Panel.
Structure based on above-mentioned mobile terminal hardware configuration, communication device proposes each embodiment of the method for the present invention.
The present invention provides a kind of photo synthesizer.
It is the schematic diagram of the first embodiment of photo synthesizer of the present invention referring to shown in Fig. 3.
In the first embodiment, which includes:
Data read module 10, for reading the first position coordinate of face in the first photo.
About the position coordinates of the face in the first photo, in one embodiment, mobile terminal can be used detecting When being taken pictures, one photo of every generation carries out recognition of face to the photo, when recognizing face, draws in human face region Rectangle posting, and obtain four angular coordinates of posting, using four angular coordinates as the position coordinates of corresponding face, Referring to shown in Fig. 4, when drawing rectangle posting, posting should be small as far as possible, as long as human face region is without departing from posting It can, it is to be understood that the posting is the auxiliary tool of a reference area, and in other embodiments, posting can also To be the other shapes such as circle, ellipse, after the position coordinates for obtaining above-mentioned face, the posting is in the photo of generation It is sightless, when storing photo, above-mentioned position coordinates are recorded in the attribute information of photo, so that being carried out using the photo When synthesis, data read module 10 can directly be read from the attribute information of photo.
In another embodiment, a photo store path can be set, be stored in when detecting in the photo store path When new photo, recognition of face just is carried out to the photo of the deposit, and generates the position coordinates of face, user carries out photo synthesis When, photo directly can be chosen from the path, alternatively, when be used to the synthesis of other photos of region that detect user's selection When there is no the position coordinates of face in one photo, directly carries out recognition of face and generate position coordinates.
Photo selecting module 20, for choosing people from default photo library according to the first position coordinate read The corresponding region of second position coordinate region corresponding with the first position coordinate in first photo where face is not Second photo of overlapping.
For ease of description, the photo for being used to synthesize user first selected is as the first photo, the corresponding position of portrait Setting coordinate is first position coordinate, and terminal is the second photo, the corresponding position of portrait according to the photo that position coordinates are selected Coordinate is second position coordinate.
After getting the first position coordinate in the first photo, photo selecting module 20 is selected from default photo library can To be used directly to the photo of synthesis, in one embodiment, which can be the storage that user is arranged in advance and is used for The path of the photo synthesized with other photos is also possible to the default photograph album of mobile terminal in other embodiments, when with When family is taken pictures using mobile terminal, photo can be all stored in the photograph album, it is to be understood that user can be according to demand Change the routing information of default photo library.
Photo selecting module 20 obtains the photo property information in default photo library, and therefrom obtains the second position of face Coordinate, for the photo of above-mentioned data can be got, first in second position coordinate and the first photo that will acquire It sets coordinate to compare, photo selecting module 20 selects the corresponding region of second position coordinate of face from default photo library Unfolded second photo in region corresponding with the first position coordinate of the face in the first photo.
Further, in other embodiments, it does not wrap when detecting in the attribute information for having photo in the default photo library When containing position coordinates, recognition of face directly can be carried out to these photos and generate position coordinates, can be user for more More optional photos.
Photo synthesis module 30, for the portrait in second photo to be added to second described in first photo The corresponding position of position coordinates, alternatively, the portrait in first photo is added to described in second photo first Set the corresponding position of coordinate.
When choosing qualified photo from default photo library has multiple, in one embodiment, photo synthesizes mould Block 30 can be randomly selected second photo and synthesize with the first photo, and in other embodiments, photo synthesis module 30 can be with Select the difference of the area in the area region corresponding with first position coordinate in the corresponding region of second position coordinate the smallest by the Two photos are synthesized with the first photo.
When photo synthesis module 30 carries out photo synthesis, when the size of two photos is identical or the size of the first photo Greater than the second photo size when, it should be noted that the unit of photo size herein be pixel, photo synthesis module 30 can By directly by scratching figure in a manner of obtain portrait in the second photo, and be added in the first photo with the portrait original The corresponding position of position coordinates in photo, and softening processing etc. is carried out to the boundary of portrait, it is specific to scratch figure and superposition synthesis Mode be the prior art, details are not described herein.
When size of the size of the first photo less than the second photo, two kinds can be exemplified below there are many embodiment Mode, mode one, the portrait in the second photo is carried out FIG pull handle by photo synthesis module 30, and the portrait that will acquire is added to Region in first photo in addition to human face region, mode two judge that portrait is in the second photo according to the position coordinates of face The no range for exceeding the first photo, if without departing from photo synthesis module 30 obtains the portrait in the second photo, and is added The position corresponding with position coordinates of the portrait in original photo into the first photo;If exceeding, photo synthesis module 30 is obtained The portrait in the first photo is taken, and is added to corresponding with position coordinates of the portrait in original photo in the second photo Position.
Further, after synthesizing two photos, photo after can directly displaying out synthesis can also be according to connecing The instruction received, using the photo after synthesis as the first photo and according in the photo after synthesis two or more The position coordinates of portrait in photo and the area of human face region screen the photo that can be synthesized from default photo library, with This analogizes, and can be realized and the portrait in multiple pictures is synthesized in a photo.
The photo synthesizer that the present embodiment proposes, when carrying out photo synthesis, according to the position of the face in the first photo Coordinate is set, selecting from photo library can directly synthesize with the first photo without will cause Chong Die the second photo of face, will Portrait in second photo is added to coordinate corresponding position in the second position in the first photo, or by the portrait in the first photo It is added to coordinate corresponding position in first position in the second photo, figure is scratched manually without user and generates portrait, and manually adjust people The position of picture, intelligent photomontage.
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, photo selecting module 20, the second position coordinate pair being also used to where choosing face in default photo library The region answered region corresponding with the first position coordinate in first photo is not overlapped, and the second position coordinate The difference of the area in corresponding region and the corresponding region of the first position coordinate is less than the second photo of preset value.
In order to enable the portrait ratio in the photo of synthesis is more naturally, avoid the corresponding region area difference mistake of face Greatly, photo selecting module 20 selects the corresponding region of second position coordinate and first where face when carrying out photo selection The corresponding region of first position coordinate in photo is not overlapped, and the corresponding region of second position coordinate and first position coordinate pair The difference of the area in the region answered is less than the second photo of preset value to be synthesized.
Further, the device further include:
List Generating Module, for when second photo has multiple, generating photo list and showing the photo column Table;
Photo synthesis module 30 is also used to when receiving the selection instruction based on the photo list, by described second Portrait in photo is added to coordinate corresponding position in the second position described in first photo, alternatively, described first is shone Portrait in piece is added to coordinate corresponding position in first position described in second photo.
When satisfactory second photo there are multiple, list is generated so that user voluntarily selects, referring to Figure 5.
Photo synthesis module 30 is specifically included with lower unit:
Figure layer adding unit shows described for when receiving selection instruction of the user based on the photo list One photo, and addition has the figure layer of default transparency on the figure layer where first photo;
Photo preview unit, for showing the selection instruction corresponding the in the figure layer with default transparency Two photos;
Photo switch unit, for when receiving photo switching command, in the figure layer with default transparency Show the second photo corresponding with the photo switching command in the picture list;
Photo synthesis unit, for after receiving confirmation instruction, the portrait in the second photo in the figure layer to be added Coordinate corresponding position in the second position described in first photo is added to, alternatively, the portrait in first photo is added To coordinate corresponding position in first position described in the second photo in the figure layer.
Before photo synthesis, preview is first carried out, figure layer adding unit adds one in the figure layer where the first photo Figure layer with default transparency, photo preview unit show the second photo in the figure layer, for user's preview, to judge to close Whether reach the demand of oneself at effect, if it is not, then can be without synthesis, then reselect.If receiving user to be based on folding When the confirmation of photo or preset control being added to instruct, the second photo shown in current transparent figure layer and the first photo are closed At.
Satisfied photo is chosen in photo list for the ease of user, user can trigger photo switching command, from Switch photo in photo list in order, shows preview effect, selected.It is cut for example, left and right can be slided on a display screen Switching is changed, or adds by volume, subtracts key or so, alternatively, being provided with the mobile terminal of pressure sensor for back, finger exists Mobile terminal back horizontally slips, and switches photo in order in photo list, until choosing satisfied photo, and this Selection mode is slided when carrying out the selection of photo relative to touch screen, will not block photo, specific selection mode, that is, touch-control behaviour The gesture of work can be preset according to demand by user.
The photo synthesizer that the present embodiment proposes first shows the effect of synthesis before photo synthesis in a manner of preview Fruit, and the photo preview that can easily switch in photo list is shown, is able to use family and is quickly chosen oneself satisfaction Photo.
Referring to shown in Fig. 6, the first embodiment or the second embodiment based on photo synthesizer of the present invention proposes the present invention The 3rd embodiment of photo synthesizer.In the present embodiment, photo synthesis module 30 includes with lower unit:
Photo comparison's unit 31, the size for second photo and first photo;
Portrait acquiring unit 32, if being less than or equal to the size of first photo for the size of second photo, Then obtain the portrait and the corresponding second position coordinate of the portrait in second photo;
Portrait adding unit 33, the portrait for will acquire are added to the second position described in first photo The corresponding position of coordinate.
It is identical for establishing a capital since the size of the photo stored in photo library is different, in the present embodiment, in photomontage During, photo comparison's unit 31 first compares the size of the second photo and the first photo, compare the lateral dimension of photo, if the The lateral dimension of two photos is less than or equal to the lateral dimension of the first photo, then portrait acquiring unit 32 obtains in the second photo Portrait and the corresponding position coordinates of portrait, the position coordinates that portrait is added in the first photo by portrait adding unit 33 are corresponding Position.
Further, portrait acquiring unit 32, if the size for being also used to second photo is greater than first photo Size then obtains the portrait in first photo;
Portrait adding unit 33, the position coordinates for being also used to be added to the portrait in second photo are corresponding Position.
If the lateral dimension of the second photo is greater than the lateral dimension of the first photo, the portrait in the first photo is blended into In second photo.
The photo synthesizer that the present embodiment proposes, in the second photo and the first photo, the bigger photograph of selection size Portrait in other photos is synthesized in the background pictures by piece as background pictures, realizes better synthetic effect.
The present invention also proposes a kind of picture synthesis method.
It is the flow chart of picture synthesis method first embodiment of the present invention referring to shown in Fig. 7.
In the first embodiment, which includes:
Step S10 reads the first position coordinate of face in the first photo.
About the position coordinates of the face in the first photo, in one embodiment, mobile terminal can be used detecting When being taken pictures, one photo of every generation carries out recognition of face to the photo, when recognizing face, draws in human face region Rectangle posting, and obtain four angular coordinates of posting, using four angular coordinates as the position coordinates of corresponding face, Referring to shown in Fig. 4, when drawing rectangle posting, posting should be small as far as possible, as long as human face region is without departing from posting It can, it is to be understood that the posting is the auxiliary tool of a reference area, and in other embodiments, posting can also To be the other shapes such as circle, ellipse, after the position coordinates for obtaining above-mentioned face, the posting is in the photo of generation It is sightless, when storing photo, above-mentioned position coordinates are recorded in the attribute information of photo, so that being carried out using the photo When synthesis, can directly it be read from the attribute information of photo.
In another embodiment, a photo store path can be set, be stored in when detecting in the photo store path When new photo, recognition of face just is carried out to the photo of the deposit, and generates the position coordinates of face, user carries out photo synthesis When, photo directly can be chosen from the path, alternatively, when be used to the synthesis of other photos of region that detect user's selection When there is no the position coordinates of face in one photo, directly carries out recognition of face and generate position coordinates.
Step S20, according to the first position coordinate read, where choosing face in default photo library second The corresponding region of position coordinates region corresponding with the first position coordinate in first photo nonoverlapping second is shone Piece.
For ease of description, the photo for being used to synthesize user first selected is as the first photo, the corresponding position of portrait Setting coordinate is first position coordinate, and terminal is the second photo, the corresponding position of portrait according to the photo that position coordinates are selected Coordinate is second position coordinate.
After getting the first position coordinate in the first photo, selection can be used directly to synthesize from default photo library Photo, in one embodiment, which, which can be the storage that user is arranged in advance, has for carrying out with other photos The path of the photo of synthesis is also possible to the default photograph album of mobile terminal in other embodiments, when user uses mobile terminal When being taken pictures, photo can be all stored in the photograph album, it is to be understood that user can change default photo library according to demand Routing information.
The photo property information in default photo library is obtained, and therefrom obtains the second position coordinate of face, for can The photo for getting above-mentioned data, the first position coordinate in second position coordinate and the first photo that will acquire carry out pair Than from first of the face in the corresponding region of second position coordinate and the first photo for selecting face in default photo library Set unfolded second photo in the corresponding region of coordinate.
Further, in other embodiments, it does not wrap when detecting in the attribute information for having photo in the default photo library When containing position coordinates, recognition of face directly can be carried out to these photos and generate position coordinates, can be user for more More optional photos.
Portrait in second photo is added to second position coordinate pair described in first photo by step S30 The position answered is answered alternatively, the portrait in first photo is added to first position coordinate pair described in second photo Position.
When choosing qualified photo from default photo library there are multiple, in one embodiment, can select at random It selects second photo to synthesize with the first photo, in other embodiments, also can choose the corresponding region of second position coordinate The smallest second photo of difference of area in area region corresponding with first position coordinate synthesized with the first photo.
When carrying out photo synthesis, when the size of two photos is identical or the size of the first photo is greater than the second photo When size, it should be noted that the unit of photo size herein be pixel, can by directly by scratch figure in a manner of obtain second Portrait in photo, and it is added to position corresponding with position coordinates of the portrait in original photo in the first photo, And softening processing etc. is carried out to the boundary of portrait, the specific figure and the mode of superposition synthesis scratched is the prior art, no longer superfluous herein It states.
When size of the size of the first photo less than the second photo, two kinds can be exemplified below there are many embodiment Portrait in second photo is carried out FIG pull handle by mode, mode one, and the portrait that will acquire is added in the first photo except people Region except face region, mode two judge whether portrait exceeds the first photo in the second photo according to the position coordinates of face Range, if without departing from the portrait in the second photo is obtained, and be added in the first photo with the portrait original The corresponding position of position coordinates in photo;If exceeding, the portrait in the first photo is obtained, and is added to the second photo In position corresponding with position coordinates of the portrait in original photo.
Further, after synthesizing two photos, photo after can directly displaying out synthesis can also be according to connecing The instruction received, using the photo after synthesis as the first photo and according in the photo after synthesis two or more The position coordinates of portrait in photo and the area of human face region screen the photo that can be synthesized from default photo library, with This analogizes, and can be realized and the portrait in multiple pictures is synthesized in a photo.
The picture synthesis method that the present embodiment proposes, when carrying out photo synthesis, according to the position of the face in the first photo Coordinate is set, selecting from photo library can directly synthesize with the first photo without will cause Chong Die the second photo of face, will Portrait in second photo is added to coordinate corresponding position in the second position in the first photo, or by the portrait in the first photo It is added to coordinate corresponding position in first position in the second photo, figure is scratched manually without user and generates portrait, and manually adjust people The position of picture, intelligent photomontage.
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 includes:
In the corresponding region of second position coordinate and first photo where choosing face in default photo library The corresponding region of the first position coordinate is not overlapped, and the corresponding region of the second position coordinate and the first position are sat The difference for marking the area in corresponding region is less than the second photo of preset value.
In order to enable the portrait ratio in the photo of synthesis is more naturally, avoid the corresponding region area difference mistake of face Greatly, first in the corresponding region of second position coordinate and the first photo when carrying out photo selection, where selection face It sets the corresponding region of coordinate not to be overlapped, and the area in the corresponding region of second position coordinate region corresponding with first position coordinate Difference be less than second photo of preset value and synthesized.
Further, before step S30, this method further include:
When second photo there are multiple, generates photo list and show the photo list;
When receiving the selection instruction based on the photo list, step S30 is executed.
When satisfactory second photo there are multiple, list is generated so that user voluntarily selects, referring to Figure 5.
Step S30 specifically includes following refinement step:
When receiving selection instruction of the user based on the photo list, first photo is shown, and described the Addition has the figure layer of default transparency on figure layer where one photo;
Corresponding second photo of the selection instruction is shown in the figure layer with default transparency;
When receiving photo switching command, shown in the picture list in the figure layer with default transparency The second photo corresponding with the photo switching command;
After receiving confirmation instruction, the portrait in the second photo in the figure layer is added in first photo The corresponding position of the second position coordinate, alternatively, the portrait in first photo to be added to second in the figure layer The corresponding position in first position coordinate described in photo.
Photo synthesis before, first carry out preview, in the figure layer where the first photo add one have preset it is transparent The figure layer of degree, and the second photo is shown in the figure layer, for user's preview, to judge whether synthetic effect reaches the need of oneself It asks, if it is not, then can be without synthesis, then reselect.If receiving user is based on superposition photo or preset control really When recognizing instruction, the second photo shown in current transparent figure layer is synthesized with the first photo.
Satisfied photo is chosen in photo list for the ease of user, user can trigger photo switching command, from Switch photo in photo list in order, shows preview effect, selected.It is cut for example, left and right can be slided on a display screen Switching is changed, or adds by volume, subtracts key or so, alternatively, being provided with the mobile terminal of pressure sensor for back, finger exists Mobile terminal back horizontally slips, and switches photo in order in photo list, until choosing satisfied photo, and this Selection mode is slided when carrying out the selection of photo relative to touch screen, will not block photo, specific selection mode, that is, touch-control behaviour The gesture of work can be preset according to demand by user.
The picture synthesis method that the present embodiment proposes first shows the effect of synthesis before photo synthesis in a manner of preview Fruit, and the photo preview that can easily switch in photo list is shown, is able to use family and is quickly chosen oneself satisfaction Photo.
Referring to shown in Fig. 8, the first embodiment or the second embodiment based on picture synthesis method of the present invention proposes the present invention The 3rd embodiment of picture synthesis method.In the present embodiment, step S30 includes following refinement step:
Step S31, the size of second photo and first photo;
Step S32 obtains described the if the size of second photo is less than or equal to the size of first photo The corresponding second position coordinate of portrait and the portrait in two photos;
Step S33, it is corresponding that the portrait that will acquire is added to second position coordinate described in first photo Position.
It is identical for establishing a capital since the size of the photo stored in photo library is different, in the present embodiment, in photomontage During, first compare the size of the second photo and the first photo, compare the lateral dimension of photo, if the lateral ruler of the second photo The very little lateral dimension for being less than or equal to the first photo then obtains portrait and the corresponding position coordinates of portrait in the second photo, will The corresponding position of the position coordinates that portrait is added in the first photo.
Further, after step s 32, step S30 further include:
If the size of second photo is greater than the size of first photo, the people in first photo is obtained Picture;
The portrait is added to the corresponding position of the position coordinates in second photo.
If the lateral dimension of the second photo is greater than the lateral dimension of the first photo, the portrait in the first photo is blended into In second photo.
The picture synthesis method that the present embodiment proposes, in the second photo and the first photo, the bigger photograph of selection size Portrait in other photos is synthesized in the background pictures by piece as background pictures, realizes better synthetic effect.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of photo synthesizer, which is characterized in that the photo synthesizer includes:
Data read module, for reading the first position coordinate of face in the first photo;
Photo selecting module, for the second position coordinate where obtaining face in default photo library, by the second position Coordinate is compared with the first position coordinate in first photo, and according to the first position coordinate read, from The corresponding region of the second position coordinate in the default photo library where selection face and the institute in first photo State nonoverlapping second photo in the corresponding region of first position coordinate;
Photo synthesis module, for when corresponding position of the second position coordinate in first photo is without departing from described the When the size of one photo, the portrait in second photo is added to second position coordinate pair described in first photo and is answered Position;Alternatively, for exceeding first photo when corresponding position of the second position coordinate in first photo Size when, the portrait in first photo is added to coordinate corresponding position in first position described in second photo It sets;
Wherein, the first position coordinate is the Face detection frame by carrying out recognition of face to first photo and drawing Several coordinates, the second position coordinate are the Face detection frame by carrying out recognition of face to second photo and drawing Several coordinates.
2. photo synthesizer according to claim 1, which is characterized in that the photo selecting module is also used to from pre- If the corresponding region of second position coordinate where choosing face in photo library and the first position in first photo The corresponding region of coordinate is not overlapped, and the corresponding region of second position coordinate region corresponding with the first position coordinate Area difference be less than preset value the second photo.
3. photo synthesizer according to claim 2, which is characterized in that the photo synthesizer further include:
List Generating Module, for when second photo has multiple, generating photo list and showing the photo list;
The photo synthesis module is also used to receiving selection instruction of the user based on the photo list and working as described second It, will be in second photo when position coordinates correspond to size of the position in first photo without departing from first photo Portrait is added to coordinate corresponding position in the second position described in first photo;Alternatively, being also used to receiving user's base In the photo list selection instruction and when corresponding position of the second position coordinate in first photo exceed institute When stating the size of the first photo, the portrait in first photo is added to first position coordinate described in second photo Corresponding position.
4. photo synthesizer according to claim 3, which is characterized in that the photo synthesis module includes:
Figure layer adding unit, for when receiving selection instruction of the user based on the photo list, showing that described first shines Piece, and addition has the figure layer of default transparency on the figure layer where first photo;
Photo preview unit, for showing that the selection instruction corresponding second is shone in the figure layer with default transparency Piece
Photo switch unit, for being shown in the figure layer with default transparency when receiving photo switching command The second photo corresponding with the photo switching command in the photo list;
Photo synthesis unit, for receive confirmation instruction after, when the second position coordinate pair is answered in first photo Position without departing from first photo size when, the portrait in the second photo in the figure layer is added to described first The corresponding position in second position coordinate described in photo;Alternatively, for after receiving confirmation instruction, when the second position is sat When the corresponding position being marked in first photo exceeds the size of first photo, the portrait in first photo is added Add to coordinate corresponding position in first position described in the second photo in the figure layer.
5. photo synthesizer according to claim 1, which is characterized in that the photo synthesis module includes:
Photo comparison's unit, the size for second photo and first photo;
Portrait acquiring unit obtains if being less than or equal to the size of first photo for the size of second photo The corresponding second position coordinate of portrait and the portrait in second photo;
Portrait adding unit, the portrait for will acquire are added to second position coordinate pair described in first photo The position answered.
6. a kind of picture synthesis method, which is characterized in that the picture synthesis method includes:
Read the first position coordinate of face in the first photo;
Second position coordinate where obtaining face in default photo library, by the second position coordinate and first photo In first position coordinate compare, and according to the first position coordinate read, selected from the default photo library It is answered with the first position coordinate pair in first photo in the corresponding region of the second position coordinate where taking face Nonoverlapping second photo in region;
When the second position coordinate pair answers size of the position in first photo without departing from first photo, by institute It states the portrait in the second photo and is added to coordinate corresponding position in the second position described in first photo;Alternatively, when described When corresponding position of the second position coordinate in first photo exceeds the size of first photo, by first photo In portrait be added to coordinate corresponding position in first position described in second photo;
Wherein, the first position coordinate is the Face detection frame by carrying out recognition of face to first photo and drawing Several coordinates, the second position coordinate are the Face detection frame by carrying out recognition of face to second photo and drawing Several coordinates.
7. picture synthesis method according to claim 6, which is characterized in that described to choose face institute from default photo library The corresponding region of second position coordinate region corresponding with the first position coordinate in first photo be not overlapped The second photo the step of include:
Described in the corresponding region of second position coordinate and first photo where choosing face in default photo library Coordinate corresponding region in first position is not overlapped, and the corresponding region of the second position coordinate and the first position coordinate pair The difference of the area in the region answered is less than the second photo of preset value.
8. picture synthesis method according to claim 7, which is characterized in that described when the second position coordinate pair answers institute When stating the size of position in the first photo without departing from first photo, the portrait in second photo is added to described Coordinate corresponding position in the second position described in first photo;Alternatively, when the second position coordinate is in first photo Corresponding position exceed first photo size when, the portrait in first photo is added in second photo Before the step of first position coordinate corresponding position, the picture synthesis method further include:
When second photo there are multiple, generates photo list and show the photo list;
It is described when the second position coordinate pair answers size of the position in first photo without departing from first photo Portrait in second photo is added to coordinate corresponding position in the second position described in first photo;Alternatively, working as When corresponding position of the second position coordinate in first photo exceeds the size of first photo, by described first Portrait in photo is added to the step of corresponding position of first position coordinate described in second photo and includes:
Described first is answered to shine receiving selection instruction of the user based on the photo list and working as the second position coordinate pair Position in piece without departing from first photo size when, the portrait in second photo is added to first photo Described in the corresponding position of second position coordinate;Alternatively, receiving selection instruction of the user based on the photo list and working as When corresponding position of the second position coordinate in first photo exceeds the size of first photo, by described first Portrait in photo is added to coordinate corresponding position in first position described in second photo.
9. picture synthesis method according to claim 8, which is characterized in that described to receive user based on the photo The selection instruction of list simultaneously answers the position in first photo without departing from first photo when the second position coordinate pair Size when, the portrait in second photo is added to coordinate corresponding position in the second position described in first photo It sets;Alternatively, receiving selection instruction of the user based on the photo list and working as the second position coordinate described first When corresponding position in photo exceeds the size of first photo, the portrait in first photo is added to described second The step of corresponding position in first position coordinate described in photo includes:
When receiving selection instruction of the user based on the photo list, first photo is shown, and shine described first Addition has the figure layer of default transparency on figure layer where piece;
Corresponding second photo of the selection instruction is shown in the figure layer with default transparency;
When receiving photo switching command, shown in the figure layer with default transparency in the photo list with institute State corresponding second photo of photo switching command;
After receiving confirmation instruction, when the second position coordinate pair answers the position in first photo without departing from described the When the size of one photo, the portrait in the second photo in the figure layer is added to the second position described in first photo The corresponding position of coordinate;Alternatively, after receiving confirmation instruction, when pair of the second position coordinate in first photo When position being answered to exceed the size of first photo, second that the portrait in first photo is added in the figure layer is shone The corresponding position in first position coordinate described in piece.
10. picture synthesis method according to claim 6, which is characterized in that described when the second position coordinate pair is answered Position in first photo without departing from first photo size when, the portrait in second photo is added to institute State coordinate corresponding position in the second position described in the first photo;Alternatively, when the second position coordinate is in first photo In corresponding position exceed first photo size when, the portrait in first photo is added to second photo Described in first position coordinate corresponding position the step of include:
Compare the size of second photo Yu first photo;
If the size of second photo is less than or equal to the size of first photo, the people in second photo is obtained Picture and the corresponding second position coordinate of the portrait;
The portrait that will acquire is added to coordinate corresponding position in the second position described in first photo.
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 CN105407275A (en) 2016-03-16
CN105407275B true 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)

Families Citing this family (5)

* 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
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
CN110674819B (en) * 2019-12-03 2020-04-14 捷德(中国)信息科技有限公司 Card surface picture detection method, device, equipment and storage medium
CN111586296B (en) * 2020-04-27 2021-11-16 北京小米移动软件有限公司 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

Also Published As

Publication number Publication date
CN105407275A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN105430295B (en) Image processing apparatus and method
CN105100609B (en) The adjusting method of mobile terminal and acquisition parameters
CN104660903B (en) Image pickup method and filming apparatus
CN104902185B (en) Image pickup method and device
CN105335458B (en) Preview picture method and device
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
CN104811554B (en) The switching method and terminal of camera mode
CN105407275B (en) Photo synthesizer and method
CN105262951A (en) Mobile terminal having binocular camera and photographing method
CN105704369B (en) A kind of information processing method and device, electronic equipment
CN105187724B (en) A kind of mobile terminal and method handling image
CN105120164B (en) The processing means of continuous photo and method
CN106603917A (en) Shooting device and method
CN104767941A (en) Photography method and device
CN105357444B (en) focusing method and device
CN105578056A (en) Photographing terminal and method
CN104751488B (en) Photographing method for moving track of moving object and terminal equipment
CN105872361A (en) Shooting guidance device, system and method
CN104796625A (en) Picture synthesizing method and device
CN105744170A (en) Picture photographing device and method
CN105163035A (en) Mobile terminal shooting system and mobile terminal shooting method
CN105407295B (en) Mobile terminal filming apparatus and method
CN104811624A (en) Infrared shooting method and infrared shooting device
CN108012073A (en) A kind of method and device for realizing pan-shot
CN105357441B (en) A kind of image-pickup method and mobile terminal

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