CN106534693B - A kind of photo processing method, device and terminal - Google Patents

A kind of photo processing method, device and terminal Download PDF

Info

Publication number
CN106534693B
CN106534693B CN201611059875.4A CN201611059875A CN106534693B CN 106534693 B CN106534693 B CN 106534693B CN 201611059875 A CN201611059875 A CN 201611059875A CN 106534693 B CN106534693 B CN 106534693B
Authority
CN
China
Prior art keywords
foreground object
multiple pictures
target scene
background object
photo
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
CN201611059875.4A
Other languages
Chinese (zh)
Other versions
CN106534693A (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 CN201611059875.4A priority Critical patent/CN106534693B/en
Publication of CN106534693A publication Critical patent/CN106534693A/en
Application granted granted Critical
Publication of CN106534693B publication Critical patent/CN106534693B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Abstract

The invention discloses a kind of photo processing methods, wherein this method comprises: comparing and analyzing to target scene in the multiple pictures of the target scene of predetermined angular shooting, wherein the multiple pictures are shot by single camera;The foreground object and background object of the target scene are determined according to the result of comparative analysis;According to the foreground object and background object photomontage determined.The invention also discloses a kind of picture processing device and terminals, it solves the problems, such as to be difficult to shoot the effect of large aperture in the related technology by single camera, foreground and background is determined by carrying out analysis to multiple pictures, is synthesized the photo of large aperture effect, is improved user experience.

Description

A kind of photo processing method, device and terminal
Technical field
The present invention relates to field of terminal technology more particularly to a kind of photo processing methods, device and terminal.
Background technique
Universal with terminal with the development of internet, the user group of terminal is increasing, while also proposing to software More intelligence, humanized demand.
In existing technology, terminal in fact, although by user as a game machine or television set, it is also possible to one Learning machine, it is also possible to which more enjoyment are brought to our life in the paradise etc. as baby.
As user gradually increases to mobile terminal dependence, the application of user in the terminal also increasingly increases More, the taking pictures of current mobile terminal can use twin-lens and take pictures, a camera be used to measure shoot object the depth of field, Then another camera synthesizes a photo to information captured by two cameras for shooting object.It is taken the photograph by double As head photomontage has become a kind of trend, still, still having significant portion mobile terminal at present is single camera, due to can not The size of aperture is adjusted, therefore the photo effect of single camera shooting is not so good.
Aiming at the problem that being difficult to shoot the effect of large aperture by single camera in the related technology, solution is not yet proposed at present Certainly scheme.
Summary of the invention
It is a primary object of the present invention to propose a kind of photo processing method, device and terminal, it is intended to solve the relevant technologies In the problem of shooting the effect of large aperture is difficult by single camera.
To achieve the above object, the present invention provides a kind of photo processing methods, comprising:
It is compared and analyzed to target scene in the multiple pictures of the target scene of predetermined angular shooting, wherein The multiple pictures are shot by single camera;
The foreground object and background object of the target scene are determined according to the result of comparative analysis;
According to the foreground object and background object photomontage determined.
Optionally, it is compared and analyzed to target scene in the multiple pictures of the target scene of predetermined angular shooting It include: the situation of change that pixel in the multiple pictures is determined by comparing the multiple pictures of the target scene.
Optionally, the foreground object of the target scene is determined according to the result of comparative analysis and background object includes: root The foreground object and background object of the target scene are determined according to the situation of change of pixel in the multiple pictures, wherein described Pixel variation is background object greatly, and the pixel changes small for foreground object.
Optionally, including: according to the depth of field photo for foreground object and background object the synthesis large aperture determined will be described Background object carries out virtualization and handles the photo synthesized;Alternatively, the foreground object is sharpened what processing was synthesized Photo;Alternatively, after enhancing the brightness of the foreground object together with the background object photomontage.
Optionally, including: according to the depth of field photo for foreground object and background object the synthesis large aperture determined will be described Background object carries out virtualization processing, and the foreground object is sharpened processing;It will be by virtualization treated background object The photo synthesized is superimposed with the foreground object after Edge contrast.
Optionally, it is compared point to target scene in the multiple pictures of the target scene of predetermined angular shooting Before analysis, the method also includes: it prompts shooting the multiple pictures in the position of predetermined angular with the target object;It protects In the presence of the multiple pictures shot with the target object in the position of predetermined angular.
According to another aspect of the present invention, a kind of picture processing device is additionally provided, comprising:
Comparative analysis module, for target scene in predetermined angular shooting the target scene multiple pictures into Row comparative analysis, wherein the multiple pictures are shot by single camera;
Determining module determines the foreground object and background object of the target scene for the result according to comparative analysis;
Synthesis module, for according to the foreground object and background object photomontage determined.
Optionally, the comparative analysis module is also used to by comparing the multiple pictures of the target scene really The situation of change of pixel in the fixed multiple pictures.
Optionally, the determining module is also used to determine the mesh according to the situation of change of pixel in the multiple pictures Mark the foreground object and background object of scene, wherein pixel variation is background object greatly, and the pixel, which changes, small is Foreground object.
Optionally, the synthesis module includes:
First synthesis unit handles the photo synthesized for the background object to be carried out virtualization;
Second synthesis unit, for the foreground object to be sharpened the photo that processing is synthesized;Alternatively,
Highlight unit, after the brightness for enhancing the foreground object together with the background object photomontage.
Optionally, the synthesis module includes:
The foreground object for the background object to be carried out virtualization processing, and is sharpened processing by processing unit;
It is superimposed synthesis unit, for will be by blurring treated background object and the foreground object after Edge contrast It is superimposed the photo synthesized.
Optionally, described device further include:
Cue module is shooting the multiple pictures in the position of predetermined angular with the target object for prompting;
Preserving module, for being stored in the multiple pictures shot with the target object in the position of predetermined angular.
According to another aspect of the present invention, a kind of terminal is additionally provided, including above-mentioned one of device.Through the invention, Compared and analyzed to target scene in the multiple pictures of the target scene of predetermined angular shooting, wherein it is described multiple Photo is shot by single camera;The foreground object and background objects of the target scene are determined according to the result of comparative analysis Body;According to the foreground object and background object photomontage determined, solves and be difficult to clap by single camera in the related technology The problem of taking out the effect of large aperture determines foreground and background by carrying out analysis to multiple pictures, synthesizes large aperture effect Photo, improve user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of photo processing method according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of shooting multiple pictures according to an embodiment of the present invention;
Fig. 5 is the block diagram of picture processing device according to an embodiment of the present invention;
Fig. 6 is the block diagram one of picture processing device according to the preferred embodiment of the invention;
Fig. 7 is the block diagram two of picture processing device according to the preferred embodiment of the invention;
Fig. 8 is the block diagram three of picture processing device according to the preferred embodiment of the 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.
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention.
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 100 with various assemblies, it should be understood that being not required for implementing all show Component out.More or fewer components can alternatively be implemented.The element of mobile terminal 100 will be discussed in more detail below.
Wireless communication unit 110 usually may include one or more components, allow mobile terminal 100 and wireless communication Radio communication between system or network.For example, wireless communication unit 110 may include broadcasting reception module 111, move and lead to Believe at least one of module 112, 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 broadcast systems.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), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system 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 Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module 115 typical case is GPS (global positioning system).According to current technology, GPS calculate from three or more satellites away from From information and correct time information and for the Information application triangulation of calculating, thus according to longitude, latitude and height Degree accurately calculates three-dimensional current location information.Currently, three satellites are used simultaneously for the method for calculating position and temporal information And the error of calculated position and temporal information is corrected by using an other satellite.In addition, GPS can be by real-time Ground Continuous plus current location information carrys out 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 100.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone 122 in formula, logging mode, speech recognition mode etc. operational mode, and energy It is enough audio data by such acoustic processing.Audio that treated (voice) data can be in the case where telephone calling model Be converted to the format output that mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can be implemented various The noise of type is eliminated (or inhibition) algorithm and is made an uproar with eliminate that (or inhibition) generate during sending and receiving audio signal Sound or interference.
The order that user input unit 130 can be inputted according to user generates key input data to control mobile terminal 100 Various operations.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, Touch tablet (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), shakes idler wheel Bar etc..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 or deceleration movement of mobile terminal 100 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 proximity sensor 141.
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 100 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 100.The various command signals or electric power inputted from pedestal may be used as identification mobile terminal 100 The signal whether being accurately fitted on pedestal.Output unit 150 is configured to the offer of vision, audio and/or tactile manner Output signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include showing Show 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 100 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 be in call signal reception pattern, call mode, record mould in mobile terminal 100 It is when under the isotypes such as formula, speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory The audio data transducing audio signal and output stored in 160 is sound.Moreover, audio output module 152 can provide with The relevant audio output of specific function that mobile terminal 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output module 152 may include loudspeaker, 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 100 according to its function.In addition, the mobile terminal 100 in the embodiment of the present invention It can be such as folded form, board-type, oscillating-type, sliding-type and other various types of mobile terminals, do not do herein specifically It limits.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple intelligent terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC 280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC 280 is also structured to be formed with the BSC 275 that can be couple to base station 270 via back haul link and connect Mouthful.Back haul link can be constructed according to any in several known interfaces, and the interface may include such as Europe mark Quasi- high capacity digital circuit/Unite States Standard high capacity digital circuit (E1/T1), asynchronous transfer mode (ATM), network protocol (IP), point-to-point protocol (PPP), frame relay, high-bit-rate digital subscriber line road (HDSL), Asymmetrical Digital Subscriber Line (ADSL) Or various types digital subscriber line (xDSL).It will be appreciated that system may include multiple BSC 275 as shown in Figure 2.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS 270.Alternatively, each subregion can by two for diversity reception or more Multiple antennas covering.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC 275 and at least one BS 270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS 270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT 295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.Location information module 115 as shown in Figure 1 (such as: GPS) is generally configured to cooperate with satellite 300 to obtain The location information that must be wanted.It substitutes GPS tracking technique or except GPS tracking technique, can be used can track movement eventually Other technologies of the position at end.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb pass It is defeated.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100 Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station is received each anti- It is handled in specific BS 270 to link signal.The data of acquisition are forwarded to relevant BSC 275.BSC provides logical Talk about the mobile management function of resource allocation and the coordination including the soft switching process between BS 270.BSC 275 will also be received Data be routed to MSC 280, the additional route service for forming interface with PSTN 290 is provided.Similarly, PSTN 290 form interface with MSC 280, and MSC and BSC 275 form interface, and BSC 275 controls BS 270 correspondingly with will be positive Link signal is sent to mobile terminal 100.
Based on above-mentioned mobile terminal, the embodiment of the invention provides a kind of photo processing method, Fig. 3 is according to the present invention The flow chart of the photo processing method of embodiment, as shown in figure 3, method includes the following steps:
Step S302 is compared point to target scene in the multiple pictures of the target scene of predetermined angular shooting Analysis, wherein the multiple pictures are shot by single camera;
Step S304 determines the foreground object and background object of the target scene according to the result of comparative analysis;
Step S306, according to the foreground object and background object photomontage determined.
Through the above steps, it is carried out pair to target scene in the multiple pictures of the target scene of predetermined angular shooting Than analysis, wherein the multiple pictures are shot by single camera;The target scape is determined according to the result of comparative analysis The foreground object and background object of elephant;According to the foreground object and background object photomontage determined, solve the relevant technologies In the problem of shooting the effect of large aperture is difficult by single camera, by multiple pictures carry out analysis determine prospect and Background synthesizes the photo of large aperture effect, improves user experience.
Object between 1m a to 5m carries out multiple pictures shooting from left to right, according to multiple shooting results, Close foreground object is not moved in multiple shootings in picture position, and background passes through because having large change around movement This mode judges the corresponding position of foreground object and background in picture, can be by blurring to background, and prospect sharpens, and closes At the depth of field camera photos of large aperture.By comparing multiple pictures, judge that the less object of change in location (needs for foreground object Carrying out the object of SD imaging) other are background object.
It can wrap to being compared and analyzed with target scene in the multiple pictures of the target scene of predetermined angular shooting It includes: determining the situation of change of pixel in the multiple pictures by comparing the multiple pictures of the target scene.It is optional , the foreground object of the target scene is determined according to the result of comparative analysis and background object may include: according to described more The situation of change for opening pixel in photo determines the foreground object and background object of the target scene, wherein the pixel variation Big is background object, and the pixel changes small for foreground object.Specifically, the shooting image for obtaining multiple pictures, according to Depth of field camera obtains the depth information of each image, obtains the range information of the object distance camera in scene later.To multiple Photo takes turns doing difference, i.e., any two different Xu images do subtraction, obtains difference, difference adds up later.Setting one A threshold value T, accumulated deficiency d are less than the pixel of T, the as pixel of target object, because camera is rotated around object, Distance of the object pixel apart from camera is held essentially constant, so difference is with regard to smaller.And background pixel is in each image, With the movement of camera, distance change differs greatly.Refer to that difference can be by background pixel and object using threshold value T good person Volumetric pixel distinguishes.
According to there are many kinds of the modes of the depth of field photo for foreground object and background object the synthesis large aperture determined, one It may include: the depth of field photo that the background object is carried out to virtualization processing synthesis large aperture in a optional embodiment;By institute State the depth of field photo that foreground object is sharpened processing synthesis large aperture;Large aperture is synthesized after enhancing the brightness of the foreground object Depth of field photo;Alternatively, cooperating the depth of field photo of large aperture after enhancing the brightness of the foreground object.
In another alternative embodiment, may include: the background object is subjected to virtualization processing, and will be described before Scenery body is sharpened processing, will be superimposed conjunction with the foreground object after Edge contrast by virtualization treated background object At the depth of field photo of large aperture.Above-mentioned Edge contrast can using sharpening tool can quick focus blur foreground object side Edge improves the clarity or focal length degree of foreground object, keeps the color of the foreground object distincter.
Enhancing and cooperating the depth of field photo of large aperture after the brightness of the foreground object may include: by increasing foreground object Strong brightness, Image Warping enhances algorithm, and there are many algorithms.Here a kind of referred to as Adaptive contrast enhancement is taken (ACE).ACE algorithm uses unsharp masking technology: image is divided into two parts first.First is that the unsharp masking of low frequency The part (unsharp mask) can be obtained by the low-pass filtering (smooth, fuzzy technology) of image.Second is that radio-frequency component, it can Unsharp masking acquisition is subtracted to cross original image.Then high frequency section is amplified (amplification coefficient, which integrates, increases CG as contrast) and is added to In unsharp masking, the image of enhancing is finally obtained, the core of ACE algorithm is how to calculate CG.Unsharp masking (unsharp mask) generally can be with the pixel by calculating for specific pixel corresponding to the low-frequency component of image The pixel average of the regional area at center is realized.It is assumed that x (i, j) is the gray value that certain in image is put, regional area Is defined as: centered on (i, j), window size is the region of (2n+1) * (2n+1), and wherein n is an integer.Certainly this If window area is also not necessarily just square.The average value mx (i, j) of part, that is, low frequency part, can use following formula meter It calculates:
And local variance sigma x (i, j) are as follows:
σ x (i, j) is exactly so-called Local standard deviation (LSD) in above formula.Defining f (i, j) indicates x (i, j) corresponding enhancing Pixel value afterwards.Then ACE algorithm can be expressed as follows:
F (i, j)=mx(i, j)+G (i, j) [x (i, j)-mx(i, j)], (3)
Function G (i, j) therein is exactly the CG said above.CG is always greater than 1 under normal circumstances, such radio-frequency component [x (i, j)-mx(i, j)] it can be enhanced.Here the calculation for providing a kind of CG is as follows:
G (i, j)=min (max (1, δ (i, j)/Gδ),10) (4)
σ x (i, j) is exactly so-called Local standard deviation (LSD), GδLocal variance for each point of entire image is average Value, is provided by formula (5), and M and N are picture traverse and height.Min and max in formula (4), which are operated, limits the value of G (i, j) In the range of [1 10], the edge of image or other change violent place, local mean square deviation is bigger, opposite full figure The ratio of average difference also can be big, enhanced;In smooth region, local mean square deviation will very little, relatively entirely The ratio of the standard deviation of figure also can be small, will not thus be enhanced.
It ensures that and foreground object and background object is obtained by above-mentioned multiple pictures comparative analysis, it can also be To with target scene in predetermined angular shooting the target scene multiple pictures compare and analyze before, prompt with institute It states target object and shoots the multiple pictures in the position of predetermined angular, be stored in the position with the target object in predetermined angular The multiple pictures of shooting are set, Fig. 4 is the schematic diagram of shooting multiple pictures according to an embodiment of the present invention, as shown in figure 4, mentioning Show that user shoots with target scene in 45 degree, saved after shooting, is in 90 degree in prompt user and target scene Shot, and so on, obtain above-mentioned multiple pictures, the degree at interval can be configured, for example, no interval 20 degree or 15 degree are shot.
According to another aspect of an embodiment of the present invention, a kind of picture processing device is additionally provided, Fig. 5 is real according to the present invention The block diagram of the picture processing device of example is applied, as shown in Figure 5, comprising:
Comparative analysis module 52, for the multiple pictures with target scene in the target scene of predetermined angular shooting It compares and analyzes, wherein the multiple pictures are shot by single camera;
Determining module 54 determines the foreground object and background objects of the target scene for the result according to comparative analysis Body;
Synthesis module 56, for according to the foreground object and background object photomontage determined.
Optionally, the comparative analysis module 52 is also used to by comparing the multiple pictures of the target scene Determine the situation of change of pixel in the multiple pictures.
Optionally, the determining module 54 is also used to according to the situation of change determination of pixel in the multiple pictures The foreground object and background object of target scene, wherein the pixel variation is background object greatly, and the pixel changes small For foreground object.
Fig. 6 is the block diagram one of picture processing device according to the preferred embodiment of the invention, as shown in fig. 6, synthesis module 56 Include:
First synthesis unit 62 handles the photo synthesized for the background object to be carried out virtualization;
Second synthesis unit 64, for the foreground object to be sharpened the photo that processing is synthesized;Alternatively,
Highlight unit 66, after the brightness for enhancing the foreground object together with the foreground object photomontage.
Fig. 7 is the block diagram two of picture processing device according to the preferred embodiment of the invention, as shown in fig. 7, synthesis module 56 Include:
The foreground object for the background object to be carried out virtualization processing, and is sharpened place by processing unit 72 Reason;
It is superimposed synthesis unit 74, for will be by blurring treated background object and the preceding scenery after Edge contrast Body is superimposed the photo synthesized.
Fig. 8 is the block diagram three of picture processing device according to the preferred embodiment of the invention, as shown in figure 8, described device is also Include:
Cue module 82 is shooting the multiple pictures in the position of predetermined angular with the target object for prompting;
Preserving module 84, for be stored in the target object in predetermined angular position shooting described in multiple photograph Piece.
According to another aspect of an embodiment of the present invention, a kind of terminal is additionally provided, including above-mentioned one of device.
The embodiment of the present invention carries out pair to target scene in the multiple pictures of the target scene of predetermined angular shooting Than analysis, wherein the multiple pictures are shot by single camera;The target scape is determined according to the result of comparative analysis The foreground object and background object of elephant;According to the depth of field photo for foreground object and background object the synthesis large aperture determined, solution It has determined and the problem of shooting the effect of large aperture is difficult by single camera in the related technology, by analyzing multiple pictures It determines foreground and background, synthesizes the photo of large aperture effect, improve user experience.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
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 the method that each embodiment of the present invention is somebody's turn to do.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
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 (8)

1. a kind of photo processing method characterized by comprising
It is compared and analyzed to target scene in the multiple pictures of the target scene of predetermined angular shooting, wherein described Multiple pictures are shot by single camera;
The foreground object and background object of the target scene are determined according to the result of comparative analysis;
According to the foreground object and background object photomontage determined;
The result according to comparative analysis determines the foreground object of the target scene and background object includes:
The shooting image of the multiple pictures is obtained, and obtains the depth information of each image according to depth of field camera, is obtained described The range information of object distance camera in target scene;
Difference is taken turns doing to the multiple pictures according to range information, difference is obtained, and difference is accumulated, determines cumulative error The pixel that value is less than threshold value is the pixel of foreground object, and the pixel for determining that accumulated deficiency is greater than threshold value is background object Pixel.
2. the method according to claim 1, wherein being shone according to foreground object and the background object synthesis determined Piece, comprising:
The background object is subjected to virtualization and handles the photo synthesized;
The foreground object is sharpened the photo that processing is synthesized;
Or after the brightness of the enhancing foreground object together with the background object photomontage.
3. the method according to claim 1, wherein being shone according to foreground object and the background object synthesis determined Piece, comprising:
The background object is subjected to virtualization processing, and the foreground object is sharpened processing;
The photo synthesized will be superimposed with the foreground object after Edge contrast by virtualization treated background object.
4. according to the method in any one of claims 1 to 3, which is characterized in that with target scene be in predetermined angular Before the multiple pictures of the target scene of shooting compare and analyze, the method also includes:
It prompts shooting the multiple pictures in the position of predetermined angular with the target object;
It is stored in the multiple pictures shot with the target object in the position of predetermined angular.
5. a kind of picture processing device characterized by comprising
Comparative analysis module, for being carried out pair to target scene in the multiple pictures of the target scene of predetermined angular shooting Than analysis, wherein the multiple pictures are shot by single camera;
Determining module determines the foreground object and background object of the target scene for the result according to comparative analysis;
Synthesis module, for according to the foreground object and background object photomontage determined;
The determining module, is specifically used for:
The shooting image of the multiple pictures is obtained, and obtains the depth information of each image according to depth of field camera, is obtained described The range information of object distance camera in target scene;
Difference is taken turns doing to the multiple pictures according to range information, difference is obtained, and difference is accumulated, determines cumulative error The pixel that value is less than threshold value is the pixel of foreground object, and the pixel for determining that accumulated deficiency is greater than threshold value is background object Pixel.
6. device according to claim 5, which is characterized in that the synthesis module includes:
First synthesis unit handles the photo synthesized for the background object to be carried out virtualization;
Second synthesis unit, for the foreground object to be sharpened the photo that processing is synthesized;Alternatively,
Highlight unit, after the brightness for enhancing the foreground object together with the background object photomontage.
7. device according to claim 5, which is characterized in that the synthesis module includes:
The foreground object for the background object to be carried out virtualization processing, and is sharpened processing by processing unit;
It is superimposed synthesis unit, for will be superimposed by virtualization treated background object with the foreground object after Edge contrast The photo synthesized.
8. a kind of terminal, which is characterized in that including the described in any item devices of claim 5 to 7.
CN201611059875.4A 2016-11-25 2016-11-25 A kind of photo processing method, device and terminal Active CN106534693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611059875.4A CN106534693B (en) 2016-11-25 2016-11-25 A kind of photo processing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611059875.4A CN106534693B (en) 2016-11-25 2016-11-25 A kind of photo processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN106534693A CN106534693A (en) 2017-03-22
CN106534693B true CN106534693B (en) 2019-10-25

Family

ID=58357391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611059875.4A Active CN106534693B (en) 2016-11-25 2016-11-25 A kind of photo processing method, device and terminal

Country Status (1)

Country Link
CN (1) CN106534693B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018331A (en) * 2017-04-19 2017-08-04 努比亚技术有限公司 A kind of imaging method and mobile terminal based on dual camera
CN108496352B (en) * 2017-05-24 2021-02-09 深圳市大疆创新科技有限公司 Shooting method and device, image processing method and device
CN108093181B (en) * 2018-01-16 2021-03-30 奇酷互联网络科技(深圳)有限公司 Picture shooting method and device, readable storage medium and mobile terminal
CN110580428A (en) * 2018-06-08 2019-12-17 Oppo广东移动通信有限公司 image processing method, image processing device, computer-readable storage medium and electronic equipment
CN108921086A (en) * 2018-06-29 2018-11-30 Oppo广东移动通信有限公司 Image processing method and device, storage medium, electronic equipment
CN109445002B (en) * 2018-11-26 2021-03-23 Oppo广东移动通信有限公司 Micro-lens array structure and manufacturing method thereof, fly-eye lens and electronic device
CN111263067B (en) * 2020-02-18 2022-02-15 RealMe重庆移动通信有限公司 Image processing method, device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212611A (en) * 2007-12-25 2008-07-02 青岛海信信芯科技有限公司 Contrast enhancement method
CN101600044A (en) * 2008-06-03 2009-12-09 宝利微电子系统控股公司 Image definition enhancing method and device based on zoom factor
CN102096909A (en) * 2010-12-30 2011-06-15 东北大学 Improved unsharp masking image reinforcing method based on logarithm image processing model

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IES20060559A2 (en) * 2006-02-14 2006-11-01 Fotonation Vision Ltd Automatic detection and correction of non-red flash eye defects
CN102353352A (en) * 2011-07-29 2012-02-15 北京联合大学 Single-camera range measurement system and range measurement method thereof
CN103024350B (en) * 2012-11-13 2015-07-29 清华大学 A kind of principal and subordinate's tracking of binocular PTZ vision system and the system of application the method
CN104424640B (en) * 2013-09-06 2017-06-20 格科微电子(上海)有限公司 The method and apparatus for carrying out blurring treatment to image
CN103559703B (en) * 2013-10-08 2016-07-06 中南大学 Crane barrier based on binocular vision is monitored and method for early warning and system
CN105245774B (en) * 2015-09-15 2018-12-21 努比亚技术有限公司 A kind of image processing method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212611A (en) * 2007-12-25 2008-07-02 青岛海信信芯科技有限公司 Contrast enhancement method
CN101600044A (en) * 2008-06-03 2009-12-09 宝利微电子系统控股公司 Image definition enhancing method and device based on zoom factor
CN102096909A (en) * 2010-12-30 2011-06-15 东北大学 Improved unsharp masking image reinforcing method based on logarithm image processing model

Also Published As

Publication number Publication date
CN106534693A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106534693B (en) A kind of photo processing method, device and terminal
CN106502693B (en) A kind of image display method and device
CN106791472B (en) A kind of exposure method and terminal
CN105245774B (en) A kind of image processing method and terminal
CN105404484B (en) Terminal split screen device and method
CN105120135B (en) A kind of binocular camera
CN105163042B (en) A kind of apparatus and method for blurring processing depth image
CN106331499B (en) Focusing method and photographing device
CN106097284B (en) A kind of processing method and mobile terminal of night scene image
CN105227865B (en) A kind of image processing method and terminal
CN107018331A (en) A kind of imaging method and mobile terminal based on dual camera
CN106603931A (en) Binocular shooting method and device
CN106506858B (en) Star orbital prediction technique and device
CN106851113A (en) A kind of photographic method and mobile terminal based on dual camera
CN106534552B (en) Mobile terminal and its photographic method
CN105187709B (en) A kind of method and terminal for realizing strange land shooting
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106534590B (en) A kind of photo processing method, device and terminal
CN107016639A (en) A kind of image processing method and device
CN106569678A (en) Display adjusting method and device of suspending operation board and terminal
CN105205361B (en) A kind of method for screening images and device
CN104735254B (en) terminal screen locking method and system
CN106303044B (en) A kind of mobile terminal and obtain the method to coke number
CN106412328B (en) A kind of method and apparatus obtaining field feedback
CN105959520B (en) A kind of photo camera and method

Legal Events

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