CN106791416A - A kind of background blurring image pickup method and terminal - Google Patents

A kind of background blurring image pickup method and terminal Download PDF

Info

Publication number
CN106791416A
CN106791416A CN201611250298.7A CN201611250298A CN106791416A CN 106791416 A CN106791416 A CN 106791416A CN 201611250298 A CN201611250298 A CN 201611250298A CN 106791416 A CN106791416 A CN 106791416A
Authority
CN
China
Prior art keywords
main body
image
shooting main
camera
object image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611250298.7A
Other languages
Chinese (zh)
Inventor
马亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201611250298.7A priority Critical patent/CN106791416A/en
Publication of CN106791416A publication Critical patent/CN106791416A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Abstract

The embodiment of the invention discloses a kind of background blurring image pickup method and terminal, the method includes:Control the first camera and second camera to be shot to shooting main body simultaneously, first object image and the second target image are generated respectively;Wherein, definition of the definition of the first object image higher than second target image;Extract the shooting main body included in the first object image;The shooting main body extracted from the first object image is merged with second target image, the 3rd target image is generated.The terminal by the method can realize it is background blurring, shoot main body clearly image effect while so that image after fusion is more true and natural on the whole.

Description

A kind of background blurring image pickup method and terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of background blurring image pickup method and terminal.
Background technology
Virtualization background pictures are shot in slr camera, be all make use of single anti-telephoto lens directly change it is optical into Picture so that only in certain object distance range, imaging is that clearly, outside this scope, what imaging all can be different degrees of is fuzzy Change, this effect highlights the crucial things on photo and ignores other setoff things, is usually used in portrait, art work etc. and takes the photograph Shadow.
This skill is, using the aperture in camera lens, focal distance (object distance) and focal length changeability, directly to adjust virtualization Effect, aperture is bigger, focal distance is nearer or focal length is bigger, and background blurring effect is stronger.Therefore, for can Directly shoot for the camera of background blurring effect, the requirement for the aperture and zoom ratio of camera lens is all higher. Because the camera module on the mobile terminals such as mobile phone, flat board is limited to volume miniaturization, the performance of its camera cannot and specialty The performance of camera, thus cannot directly shoot it is background blurring after image.
Based on this, the original image of shooting is mainly carried out into prospect in the prior art and is separated with background, detected Behind the edge of foreground image (shooting main body), to foreground image areas outside background image carry out Fuzzy processing.Although this Kind of mode can reach certain background blurring effect, but due to foreground detection techniques will preferably can not shoot main body and Background is separated, while background image directly is carried out into Fuzzy processing so that shooting main body can not be dissolved into well In background image, so as to cause it is background blurring after image authenticity it is not good enough.
In recent years, the mobile terminal of preposition dual camera or rearmounted dual camera is increasingly favored by user, should The generation of technology brings many possibility to the image effect that mobile terminal shoots.Based on this, how using double movements for taking the photograph head Terminal causes that the background blurring image shot more truly turns into the problem for needing to solve at present.
The content of the invention
It is a primary object of the present invention to propose a kind of background blurring image pickup method and terminal, it is intended to possess using terminal The characteristics of preposition dual camera or rearmounted dual camera, shoot background blurring, shooting main body clearly and the image of true nature Effect.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the invention provides a kind of background blurring image pickup method, the method includes:
Control the first camera and second camera to be shot to shooting main body simultaneously, first object image is generated respectively With the second target image;Wherein, definition of the definition of the first object image higher than second target image;
Extract the shooting main body included in the first object image;
The shooting main body extracted from the first object image is merged with second target image, it is raw Into the 3rd target image.
In such scheme, first camera and second camera are arranged at the same level of the same side of terminal On line, and the distance between first camera and second camera are less than default distance threshold.
It is described to extract the shooting main body included in the first object image in such scheme, specifically include:
The shooting main body in the first object image carries out rim detection, obtains the edge for shooting main body Detection information;
Edge detecting information according to the shooting main body extracts the shooting main body.
In such scheme, it is described to the first object image in the shooting main body carry out rim detection, obtain Before taking the edge detecting information of the shooting main body, methods described includes:
The first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to point out to use Family selects to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in detection Preset Time;Wherein, the touch control operation information includes pre- If the touch control operation number of times occurred in the time and the corresponding positional information of each touch control operation;
The stingy figure scope is determined according to the touch control operation information.
In such scheme, it is described to the first object image in the shooting main body carry out rim detection, obtain The edge detecting information for shooting main body, including:
The characteristics of image of the shooting main body is determined according to the stingy figure scope;
Rim detection is carried out to the shooting main body according to described image feature, the rim detection for shooting main body is obtained Information.
Second aspect, the embodiment of the invention provides a kind of background blurring camera terminal, and the terminal includes:Shoot mould Block, extraction module and image co-registration module;Wherein,
The taking module, for controlling the first camera and second camera to be shot to shooting main body simultaneously, point Sheng Cheng not first object image and the second target image;Wherein, the definition of the first object image is higher than second mesh The definition of logo image;
The extraction module, for extracting the shooting main body included in the first object image;
Described image Fusion Module, for the shooting main body and described that will be extracted from the first object image Two target images are merged, and generate the 3rd target image.
In such scheme, first camera and second camera are arranged at the same level of the same side of terminal On line, and the distance between first camera and second camera are less than default distance threshold.
In such scheme, the extraction module, specifically for:
The shooting main body in the first object image carries out rim detection, obtains the edge for shooting main body Detection information;
Edge detecting information according to the shooting main body extracts the shooting main body.
In such scheme, the extraction module is additionally operable to:
The first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to point out to use Family selects to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in detection Preset Time;Wherein, the touch control operation information includes pre- If the touch control operation number of times occurred in the time and the corresponding positional information of each touch control operation;
The stingy figure scope is determined according to the touch control operation information.
In such scheme, the extraction module, specifically for:
The characteristics of image of the shooting main body is determined according to the stingy figure scope;
Rim detection is carried out to the shooting main body according to described image feature, the rim detection for shooting main body is obtained Information.
A kind of background blurring image pickup method and terminal that the embodiment of the present invention is provided, the method can have using terminal The characteristics of standby preposition dual camera or rearmounted dual camera, by the shooting main body that will be extracted from definition image higher with The relatively low image of definition is merged so that the image after fusion have it is background blurring, shoot main body it is clear and it is true from Right image effect.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of background blurring image pickup method schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of image co-registration process schematic provided in an embodiment of the present invention;Wherein, Fig. 3 (a1) is of the invention real A kind of first object image schematic diagram of example offer is provided;Fig. 3 (a2) is a kind of first object image provided in an embodiment of the present invention In shooting main body Lena schematic diagrames;Fig. 3 (b) is a kind of second target image schematic diagram provided in an embodiment of the present invention;Fig. 3 C () is a kind of 3rd target image schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of method schematic diagram for determining to scratch figure scope provided in an embodiment of the present invention;
Fig. 5 is the process schematic that a kind of user provided in an embodiment of the present invention by continuous touch control operation scratch figure; Wherein, Fig. 5 (a) is that a kind of user provided in an embodiment of the present invention scratches graphic operation schematic diagram;Fig. 5 (b) is carried for the embodiment of the present invention A kind of stingy figure scope schematic diagram for supplying;
Fig. 6 is the process schematic that a kind of user provided in an embodiment of the present invention by touch-control described point scratch figure;Wherein, Fig. 6 (a) is that a kind of user provided in an embodiment of the present invention scratches graphic operation schematic diagram;Fig. 6 (b) is provided in an embodiment of the present invention another A kind of stingy figure scope schematic diagram;
Fig. 7 is that a kind of background blurring image pickup method provided in an embodiment of the present invention is preferable to carry out process schematic;
Fig. 8 is the process schematic that a kind of user provided in an embodiment of the present invention by continuous touch control operation scratch figure; Wherein, Fig. 8 (a) is a kind of terminal interface display schematic diagram provided in an embodiment of the present invention;Fig. 8 (b) is carried for the embodiment of the present invention A kind of user for supplying scratches graphic operation track schematic diagram;Fig. 8 (c) illustrates for another stingy figure scope provided in an embodiment of the present invention Figure;
Fig. 9 is a kind of background blurring camera terminal structural representation provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
The mobile terminal of realization each embodiment of the invention is described referring now to accompanying drawing 1.In follow-up description, make With the suffix of such as " module ", " part " or " unit " for representing element only for being conducive to explanation of the invention, its Body does not have specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving It is phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable The mobile terminal of formula multimedia player (PMP), guider etc. and the such as fixation of numeral TV, desktop computer etc. Terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving mesh Element outside, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include audio/video (A/V) input block 120, user input unit 130, output unit 150th, memory 160, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 is shown with various assemblies Mobile terminal, it should be understood that being not required for implementing all components for showing, can alternatively implement more or less Component, will be discussed in more detail below the element of mobile terminal.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include camera 121, phase Static images or the image of video that 121 pairs, machine is obtained in Video Capture pattern or image capture mode by image capture apparatus Data are processed.Picture frame after treatment may be displayed on display unit 151.Picture frame after being processed through camera 121 can To store in memory 160 (or other storage mediums), two or more cameras can be provided according to the construction of mobile terminal 121。
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, 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 that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 can serve as input unit and output device.Display unit 151 can 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 be watched from outside, and 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 implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch Input pressure and touch input position and touch input area.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke Temporarily to store the data that exported or will export (for example, telephone directory, message, still image, video etc.).And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and treatment.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method 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), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, 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. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.In addition, this Shen Following examples are please proposed based on described above.
Embodiment one
As shown in Fig. 2 it gives a kind of background blurring image pickup method provided in an embodiment of the present invention, can from figure To find out, the method can include:
S210, the first camera of control and second camera are shot to shooting main body simultaneously, and the first mesh is generated respectively Logo image and the second target image;Wherein, the definition of the first object image is clear higher than second target image Degree;
Here, it is necessary to explanation, first camera and second camera are arranged at the same of the same side of terminal On one horizontal line, and the distance between first camera and second camera are less than default distance threshold.Described One camera is used to obtain image definition first object image higher, and the second camera is used to obtain image definition The second relatively low target image, that is, meet the target image of background blurring requirement.
The shooting main body included in S220, the extraction first object image;
S230, by from the first object image extract the shooting main body melted with second target image Close, generate the 3rd target image.
It is to be appreciated that image co-registration refers to the advantageous information in comprehensive two or more source images, to obtain to same More accurate, comprehensive and reliable iamge description of the same target of one scene.The technology takes full advantage of multiple images to be fused In redundancy and complementary information, its mainly include Multi-Sensory Image Fusion at Pixel Level, feature level image interfusion method and decision-making Level image interfusion method, step is implemented for every kind of method, and due to belonging to prior art, so here is omitted.
From step S210, the first object image is definition image higher, and second target image is Meet the image of background blurring requirement, if it is possible to the shooting main body inspection that will be included in the first object image Survey and extract, it is possible to by the shooting main body extracted from the first object image and second target image Merged, shot that main body is clear, background blurring and image of true nature so as to obtain one, it is so prominent to shoot main body, Enhancing visual effect.Specific fusion process schematic diagram may refer to Fig. 3, it can be seen that Fig. 3 (a1) is step S210 In the first camera to shooting the first object image schematic diagram that obtains when main body Lena shoots;Fig. 3 (a2) is to perform step The result of rapid S220, i.e., the shooting main body Lena schematic diagrames in first object image, Fig. 3 (b) is the second shooting in step S210 Head is the shooting main body of Fig. 3 (a2) to shooting the second target image schematic diagram obtained when main body Lena shoots, Fig. 3 (c) Lena and result schematic diagram that the Fig. 3 (c) is merged (detailed process corresponding step S230).It can be seen that carry out During image co-registration, because the shooting main body in second target image and background image are fuzzy, therefore, after fusion Shooting main body (i.e. foreground image) edge in image preferably can be transitioned into background image, so as to be that shooting main body can Preferably be dissolved into background image, it is ensured that image (i.e. described 3rd target image) effect after fusion it is more true and from So.
For step S210, in addition it is also necessary to explanation, terminal can be by adjusting the first camera and the second shooting respectively Head and shoot the object distance between main body and adjust the definition of shooting image.For example, adjusting the first camera and shooting main body Between object distance after, calculate the definition of intake image in first camera, and when the definition of the intake image reaches During to default first clarity threshold, stop the regulation to the object distance between first camera and shooting main body, and it is raw Into the first object image;Similarly, the object distance between the second camera and the shooting main body is adjusted, makes its intake figure The definition of picture reaches the actual requirement of background blurring effect, can pre-set one less than first clarity threshold Second clarity threshold, when the definition of the intake image reaches default second clarity threshold, stops to described the The regulation of the object distance between two cameras and shooting main body, and generate the second target image.It should be noted that described first is clear Clear degree threshold value and second clarity threshold are all based on the empirical value of practical application, and first clarity threshold is more than Second clarity threshold, its purpose is to can respectively obtain image definition image higher (i.e. first mesh Logo image) and the relatively low image (meeting the second target image of background blurring effect requirements) of an image definition.
Image definition described here is used for the readability of phenogram picture, and described image definition is higher, corresponding Image is more clear;Conversely, described image definition is lower, corresponding image is fuzzyyer.Common image definition evaluation Function mainly have grey scale change function (such as gradation of image variance function), gradient function (such as gradient of image and gray scale energy function, Robert gradient and Laplacian operators) and gradation of image entropy function.Because the above-mentioned evaluation method for image definition is equal Belong to prior art, therefore, here is omitted.
Exemplarily, for step S220, the shooting main body included in the extraction first object image can To include:
S2201, to the first object image in the shooting main body carry out rim detection, obtain the shooting main body Edge detecting information;
S2202, according to it is described shooting main body edge detecting information extract the shooting from the first object image Main body.
It should be noted that before step S2201 is performed, as shown in figure 4, the method shown in Fig. 2 also includes:
S410, the first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to carry Show that user selects to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in S420, detection Preset Time;Wherein, the touch control operation packet Include the touch control operation number of times and the corresponding positional information of each touch control operation occurred in Preset Time;
Specifically, in the first object image that the first camera shown by terminal display screen shoots, user can pass through Continuously the shooting picture of touch control operation or multiple touch control terminal display screen is the shooting main body that selects user to be protruded, from And the position range where facilitating terminal to determine the shooting main body.For example, the shooting main body that user wants protrusion is Fig. 5 (a) Shown personage Lena, now, user can pass through finger continuously touch control operation in the image shown by terminal display screen Personage Lena is confined, shown in the result confined such as Fig. 5 (b), as can be seen that in the range of white dashed line frame from Fig. 5 (b) Region part be stingy figure scope;In addition, user can also be by repeatedly clicking on the image shown by terminal display screen come real Now personage Lena is confined, the specific white round dot as shown in Fig. 6 (a) is the position that user repeatedly clicks on, in this way, terminal The stingy figure scope can be determined according to the corresponding positional information of the white round dot, for example, the terminal can be according to described Position where white round dot constitutes the white dashed line frame as shown in Fig. 6 (b), and the region part of the white dashed line inframe is stingy Figure scope.
S430, the stingy figure scope is determined according to the touch control operation information.
In this way, the terminal just can according to multiple touch control operation on the touch-screen distinguish corresponding positional information come Determine that terminal needs to scratch the scope of figure.
Based on this, for step S2201, it is described to the first object image in the shooting main body carry out edge inspection Survey, obtain the edge detecting information for shooting main body, can include:
S2201a, the characteristics of image that the shooting main body is determined according to the stingy figure scope;
It should be noted that characteristics of image can be the characteristic informations such as gray scale, color or textural characteristics, by these figures Made a distinction with exterior domain with main body is shot as feature can will shoot main body.In general, the characteristics of image of main body is shot all Certain uniformity is had, such as the shooting main body of described first camera is flower, and flower is made up of a dominant hue, with week The greenery for enclosing form a sharp contrast;The shooting main body of such as described first camera is insect again, and insect is in overall color And also can show different characteristics of image from the environment where it on texture features.
It is Position Approximate scope of the shooting main body in the first object image due to scratch the locking of figure scope, because This, the whole characteristics of image for shooting main body can be speculated using characteristics of image of the main body in the range of stingy figure is shot.
S2201b, rim detection is carried out to the shooting main body according to described image feature, obtain the main body that shoots Edge detecting information.
It should be noted that rim detection is the position that detection image feature changes, the edge of image refers to image The value of middle pixel has the place of mutation, and different images gray scale is different, and obvious edge is typically had in the boundary of different images, Can using this characteristic come segmentation figure as detection image edge.Edge is the line of demarcation for shooting main body and background area, is extracted Edge could will shoot main body and background area makes a distinction.In the picture, border shows a termination for characteristic area and another One beginning of characteristic area, the internal feature or attribute of border institute separation region are consistent, and different intra-zones Feature or attribute are different, and rim detection is exactly realized using the difference of main body and background in certain picture characteristics is shot , accessed gray scale, color or textural characteristics characteristics of image in such as above-mentioned step S2201a.Carried out to shooting main body Rim detection can will just shoot main body and be made a distinction with other background areas where it, so that convenient to the shooting main body Extraction.
A kind of background blurring image pickup method is the embodiment of the invention provides, the method can utilize the dual camera of terminal A definition image and an image for meeting background blurring requirement higher are obtained respectively, and it is higher from the definition Shooting main body is extracted in image, is melted by the shooting main body and the image for meeting background blurring requirement that will extract Close so that fusion after image meet shoot main body it is clear, it is background blurring require while so that the image after fusion Effect is more true and natural on the whole.
Embodiment two
For convenience to the understanding of above-mentioned technical proposal, as shown in fig. 7, it gives a kind of background blurring shooting side Method is preferable to carry out process, is applied to the mobile terminal with preposition dual camera or rearmounted dual camera, can be with from figure Find out, the implementation process specifically may include steps of:
S710, the camera of the terminal control first and second camera shoot to shooting main body simultaneously, give birth to respectively Into first object image and the second target image;Wherein, the definition of the first object image is higher than the second target figure The definition of picture;
S720, the terminal show the first object image and prompt message on the touchscreen;Wherein, the prompting letter Cease for pointing out user to select to scratch figure scope in the first object image;
The touch control operation information received on the touch-screen in S730, terminal detection Preset Time;Wherein, it is described to touch Control operation information includes the touch control operation number of times and the corresponding positional information of each touch control operation that occur in Preset Time;
S740, the terminal determine the stingy figure scope according to the touch control operation information;
S750, the terminal determine the characteristics of image of the shooting main body according to the stingy figure scope;
S760, the terminal carry out rim detection according to described image feature to the shooting main body, obtain the shooting The edge detecting information of main body;
S770, the terminal extract institute according to the edge detecting information of the shooting main body from the first object image State shooting main body;
S780, the terminal by from the first object image extract the shooting main body and the second target figure As being merged, the 3rd target image is generated.
For example, certain user is carrying out personage's shooting using the mobile phone with rearmounted dual camera, when user uses mobile phone pair After standard needs the personage for shooting, the camera button on camera applications interface is clicked on, now, on mobile phone screen show wherein one ratio More visible picture and the prompt message for pointing out user's selection to scratch figure scope, referring specifically to Fig. 8 (a);User is existed with finger Continuously touch control operation is carried out on mobile phone screen, delimited and is scratched figure scope, the touch control operation track of the user is referring to institute in Fig. 8 (b) The white line frame for showing, at the end of touch control operation, the mobile phone can determine what user delimited according to the touch control operation information for detecting Figure scope is scratched, referring specifically to the white dashed line frame shown in Fig. 8 (c).Based on this, mobile phone is by performing above-mentioned steps S730 extremely S780, thus merge generate one it is background blurring, main body clearly picture is shot, and by mobile phone screen by the figure after fusion Piece is presented to the user.
Process and specific example are preferable to carry out by above-mentioned, it is a kind of background blurring that the embodiment of the present invention is provided The characteristics of image pickup method can utilize preposition terminal or rearmounted dual camera, the shooting main body in the image of shooting clear is extracted Out, and the image that is obscured with another shooting effect of the shooting main body that will be extracted is merged, so as to realize background Virtualization, shoot main body clearly shooting effect while so that image effect after fusion is more true and natural on the whole.
Embodiment three
Based on technology design same as before, as shown in figure 9, it gives a kind of background provided in an embodiment of the present invention The camera terminal 90 of virtualization, it is characterised in that the terminal includes:Taking module 910, extraction module 920 and image co-registration mould Block 930;Wherein,
The taking module 910, for controlling the first camera and second camera to be shot to shooting main body simultaneously, First object image and the second target image are generated respectively;Wherein, the definition of the first object image is higher than described second The definition of target image;
The extraction module 920, for extracting the shooting main body included in the first object image;
Described image Fusion Module 930, for the shooting main body that will be extracted from the first object image and institute State the second target image to be merged, generate the 3rd target image.
In such scheme, first camera and second camera are arranged at the same level of the same side of terminal On line, and the distance between first camera and second camera are less than default distance threshold.
In such scheme, the extraction module 920, specifically for:
The shooting main body in the first object image carries out rim detection, obtains the edge for shooting main body Detection information;
Edge detecting information according to the shooting main body extracts the shooting main body.
In such scheme, the extraction module 920 is additionally operable to:
The first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to point out to use Family selects to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in detection Preset Time;Wherein, the touch control operation information includes pre- If the touch control operation number of times occurred in the time and the corresponding positional information of each touch control operation;
The stingy figure scope is determined according to the touch control operation information.
In such scheme, the extraction module 920, specifically for:
The characteristics of image of the shooting main body is determined according to the stingy figure scope;
Rim detection is carried out to the shooting main body according to described image feature, the rim detection for shooting main body is obtained Information.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described by each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of background blurring image pickup method, it is characterised in that methods described includes:
Control the first camera and second camera to be shot to shooting main body simultaneously, first object image and the are generated respectively Two target images;Wherein, definition of the definition of the first object image higher than second target image;
Extract the shooting main body included in the first object image;
The shooting main body extracted from the first object image is merged with second target image, generation the Three target images.
2. method according to claim 1, it is characterised in that first camera and second camera are arranged at terminal In the same horizontal line of same side, and the distance between first camera and second camera less than it is default away from From threshold value.
3. method according to claim 1, it is characterised in that what is included in the extraction first object image is described Main body is shot, is specifically included:
The shooting main body in the first object image carries out rim detection, obtains the rim detection for shooting main body Information;
Edge detecting information according to the shooting main body extracts the shooting main body.
4. method according to claim 3, it is characterised in that in the shooting in the first object image Main body carries out rim detection, and before obtaining the edge detecting information for shooting main body, methods described includes:
The first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to point out user to exist Select to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in detection Preset Time;Wherein, when the touch control operation information includes default The touch control operation number of times and the corresponding positional information of each touch control operation of interior appearance;
The stingy figure scope is determined according to the touch control operation information.
5. method according to claim 4, it is characterised in that it is described to the first object image in the shooting master Body carries out rim detection, obtains the edge detecting information for shooting main body, including:
The characteristics of image of the shooting main body is determined according to the stingy figure scope;
Rim detection is carried out to the shooting main body according to described image feature, the rim detection letter for shooting main body is obtained Breath.
6. a kind of background blurring camera terminal, it is characterised in that the terminal includes:Taking module, extraction module and image Fusion Module;Wherein,
The taking module, for controlling the first camera and second camera to be shot to shooting main body simultaneously, gives birth to respectively Into first object image and the second target image;Wherein, the definition of the first object image is higher than the second target figure The definition of picture;
The extraction module, for extracting the shooting main body included in the first object image;
Described image Fusion Module, for the shooting main body that will be extracted from the first object image and second mesh Logo image is merged, and generates the 3rd target image.
7. terminal according to claim 6, it is characterised in that first camera and second camera are arranged at terminal In the same horizontal line of same side, and the distance between first camera and second camera less than it is default away from From threshold value.
8. terminal according to claim 6, it is characterised in that the extraction module, specifically for:
The shooting main body in the first object image carries out rim detection, obtains the rim detection for shooting main body Information;
Edge detecting information according to the shooting main body extracts the shooting main body.
9. terminal according to claim 8, it is characterised in that the extraction module, is additionally operable to:
The first object image and prompt message are shown on the touchscreen;Wherein, the prompt message is used to point out user to exist Select to scratch figure scope in the first object image;
The touch control operation information received on touch-screen in detection Preset Time;Wherein, when the touch control operation information includes default The touch control operation number of times and the corresponding positional information of each touch control operation of interior appearance;
The stingy figure scope is determined according to the touch control operation information.
10. terminal according to claim 9, it is characterised in that the extraction module, specifically for:
The characteristics of image of the shooting main body is determined according to the stingy figure scope;
Rim detection is carried out to the shooting main body according to described image feature, the rim detection letter for shooting main body is obtained Breath.
CN201611250298.7A 2016-12-29 2016-12-29 A kind of background blurring image pickup method and terminal Pending CN106791416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611250298.7A CN106791416A (en) 2016-12-29 2016-12-29 A kind of background blurring image pickup method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611250298.7A CN106791416A (en) 2016-12-29 2016-12-29 A kind of background blurring image pickup method and terminal

Publications (1)

Publication Number Publication Date
CN106791416A true CN106791416A (en) 2017-05-31

Family

ID=58928325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611250298.7A Pending CN106791416A (en) 2016-12-29 2016-12-29 A kind of background blurring image pickup method and terminal

Country Status (1)

Country Link
CN (1) CN106791416A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566742A (en) * 2017-10-27 2018-01-09 广东欧珀移动通信有限公司 Image pickup method, device, storage medium and electronic equipment
CN110830715A (en) * 2019-10-31 2020-02-21 维沃移动通信(杭州)有限公司 Photographing method and electronic equipment
CN111091506A (en) * 2019-12-02 2020-05-01 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment
CN111212231A (en) * 2020-01-16 2020-05-29 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111246093A (en) * 2020-01-16 2020-06-05 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111601040A (en) * 2020-05-29 2020-08-28 维沃移动通信(杭州)有限公司 Camera control method and device and electronic equipment
CN112991242A (en) * 2019-12-13 2021-06-18 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
WO2021190428A1 (en) * 2020-03-27 2021-09-30 维沃移动通信有限公司 Image capturing method and electronic device
WO2022011657A1 (en) * 2020-07-16 2022-01-20 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN114762313A (en) * 2020-01-16 2022-07-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN116801093A (en) * 2023-08-25 2023-09-22 荣耀终端有限公司 Image processing method, device and storage medium
WO2023240489A1 (en) * 2022-06-15 2023-12-21 北京小米移动软件有限公司 Photographic method and apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259108A (en) * 2006-03-23 2007-10-04 Fujifilm Corp Photographic device
CN105847664A (en) * 2015-07-31 2016-08-10 维沃移动通信有限公司 Shooting method and device for mobile terminal
CN105847674A (en) * 2016-03-25 2016-08-10 维沃移动通信有限公司 Preview image processing method based on mobile terminal, and mobile terminal therein

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007259108A (en) * 2006-03-23 2007-10-04 Fujifilm Corp Photographic device
CN105847664A (en) * 2015-07-31 2016-08-10 维沃移动通信有限公司 Shooting method and device for mobile terminal
CN105847674A (en) * 2016-03-25 2016-08-10 维沃移动通信有限公司 Preview image processing method based on mobile terminal, and mobile terminal therein

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566742B (en) * 2017-10-27 2020-05-22 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN107566742A (en) * 2017-10-27 2018-01-09 广东欧珀移动通信有限公司 Image pickup method, device, storage medium and electronic equipment
CN110830715A (en) * 2019-10-31 2020-02-21 维沃移动通信(杭州)有限公司 Photographing method and electronic equipment
CN110830715B (en) * 2019-10-31 2021-06-25 维沃移动通信(杭州)有限公司 Photographing method and electronic equipment
CN111091506A (en) * 2019-12-02 2020-05-01 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment
CN112991242A (en) * 2019-12-13 2021-06-18 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
CN111212231A (en) * 2020-01-16 2020-05-29 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111212231B (en) * 2020-01-16 2021-06-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111246093A (en) * 2020-01-16 2020-06-05 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111246093B (en) * 2020-01-16 2021-07-20 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN114762313A (en) * 2020-01-16 2022-07-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN114762313B (en) * 2020-01-16 2024-03-01 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
WO2021190428A1 (en) * 2020-03-27 2021-09-30 维沃移动通信有限公司 Image capturing method and electronic device
CN111601040A (en) * 2020-05-29 2020-08-28 维沃移动通信(杭州)有限公司 Camera control method and device and electronic equipment
CN111601040B (en) * 2020-05-29 2021-11-09 维沃移动通信(杭州)有限公司 Camera control method and device and electronic equipment
WO2022011657A1 (en) * 2020-07-16 2022-01-20 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2023240489A1 (en) * 2022-06-15 2023-12-21 北京小米移动软件有限公司 Photographic method and apparatus, and storage medium
CN116801093A (en) * 2023-08-25 2023-09-22 荣耀终端有限公司 Image processing method, device and storage medium
CN116801093B (en) * 2023-08-25 2023-11-28 荣耀终端有限公司 Image processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN106791416A (en) A kind of background blurring image pickup method and terminal
CN105430295B (en) Image processing apparatus and method
CN106534675A (en) Method and terminal for microphotography background blurring
KR102173123B1 (en) Method and apparatus for recognizing object of image in electronic device
US9804635B2 (en) Electronic device and method for controlling displays
CN111541907B (en) Article display method, apparatus, device and storage medium
CN109791437B (en) Display device and control method thereof
EP3547218B1 (en) File processing device and method, and graphical user interface
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
CN105096241A (en) Face image beautifying device and method
CN106530241A (en) Image blurring processing method and apparatus
CN101674409A (en) Mobile terminal having panorama photographing function and method for controlling operation thereof
CN105120164B (en) The processing means of continuous photo and method
CN106603856A (en) Screen brightness adjusting method and terminal
WO2022042425A1 (en) Video data processing method and apparatus, and computer device and storage medium
CN110290426B (en) Method, device and equipment for displaying resources and storage medium
CN106612396A (en) Photographing device, photographing terminal and photographing method
CN110463177A (en) The bearing calibration of file and picture and device
CN106161933B (en) A kind of image processing method and mobile terminal
CN105407275B (en) Photo synthesizer and method
CN111880888A (en) Preview cover generation method and device, electronic equipment and storage medium
CN111353946B (en) Image restoration method, device, equipment and storage medium
CN107197138A (en) A kind of filming apparatus, method and mobile terminal
KR20200127928A (en) Method and apparatus for recognizing object of image in electronic device
KR101832372B1 (en) Mobile terminal and control method therof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531