CN107172346A - A kind of weakening method and mobile terminal - Google Patents

A kind of weakening method and mobile terminal Download PDF

Info

Publication number
CN107172346A
CN107172346A CN201710297532.XA CN201710297532A CN107172346A CN 107172346 A CN107172346 A CN 107172346A CN 201710297532 A CN201710297532 A CN 201710297532A CN 107172346 A CN107172346 A CN 107172346A
Authority
CN
China
Prior art keywords
virtualization
area
image
target area
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710297532.XA
Other languages
Chinese (zh)
Other versions
CN107172346B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710297532.XA priority Critical patent/CN107172346B/en
Publication of CN107172346A publication Critical patent/CN107172346A/en
Application granted granted Critical
Publication of CN107172346B publication Critical patent/CN107172346B/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
    • 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
    • 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/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiments of the invention provide a kind of weakening method and mobile terminal, the weakening method includes:The foreground area in preview image and background area are recognized, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, to generate corresponding depth image;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate the virtualization image that background area is blurred.Virtualization processing is carried out to the preview image with two or more target areas so as to realize, the precision of multiple target virtualization processing is effectively improved, and then improves Consumer's Experience.

Description

A kind of weakening method and mobile terminal
Technical field
The present embodiments relate to the communications field, more particularly to a kind of weakening method and mobile terminal.
Background technology
With continuing to develop for mobile terminal technology, the shoot function in mobile terminal also increasingly enriches.Prior art In, user can select to generate background blurring photo during taking pictures.Specifically weakening method is mainly:Mobile terminal according to The foreground area of family selection carries out virtualization processing, in the prior art, and the selection of foreground area is substantially passed through by user Circular or rectangle frame, then, mobile terminal is blurred the other parts do not enclosed in frame by aiming circle wherein.
However, when image has multiple targets, then prior art will be unable to carry out multiple targets virtualization processing, citing Explanation:If there is part Small object in multiple targets, or, multiple target arrays are relatively disperseed, then prior art can not will be multiple Target is selected, therefore, there will be the problem of small part target is blurred and occurs.
Therefore, for prior art during being blurred to multi-Target Image, it is low to there is precision, causes user The problem of experience difference, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the present invention provides a kind of weakening method, to solve prior art in the mistake blurred to multi-Target Image Cheng Zhong, it is low to there is precision, the problem of causing poor user experience.
First aspect is there is provided a kind of weakening method, and applied to mobile terminal, methods described includes:
The foreground area in preview image and background area are recognized, wherein, the foreground area includes at least two targets Region;
Virtualization processing is carried out based on each target area, to generate corresponding depth image;
According to the corresponding depth image in each target area, synthesis processing is carried out to the preview image, it is described to generate The virtualization image that background area is blurred.
On the other hand, the embodiment of the present invention additionally provides a kind of mobile terminal, including:
Identification module, for recognizing foreground area and background area in preview image, wherein, the foreground area includes At least two target areas;
Processing module is blurred, for carrying out virtualization processing based on each target area, to generate corresponding depth image;
Synthesis module, for being carried out according to the corresponding depth image in each target area to the preview image at synthesis Reason, to generate the virtualization image that the background area is blurred.
So, the technical scheme in the embodiment of the present invention, by recognizing foreground area and background area in preview image, Wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, to generate corresponding scape Deep image;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background area quilt The virtualization image of virtualization.Virtualization processing is carried out to the preview image with least two target areas so as to realize, effectively Ground improves the precision of multiple target virtualization processing, and then improves Consumer's Experience.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of the weakening method in the embodiment of the present invention one;
Fig. 2 is the flow chart of the weakening method in the embodiment of the present invention two;
Fig. 3 is the block diagram of the mobile terminal in the embodiment of the present invention three;
Fig. 4 is the block diagram of the mobile terminal in the embodiment of the present invention three;
Fig. 5 is the block diagram of the mobile terminal in the embodiment of the present invention four;
Fig. 6 is the structural representation of the mobile terminal in the embodiment of the present invention five.
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, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Embodiment one
Reference picture 1, shows a kind of flow chart of weakening method in the embodiment of the present invention.
Step 101, the foreground area in identification preview image and background area, wherein, foreground area includes at least two Target area.
Specifically, in an embodiment of the present invention, mobile terminal in shooting process, generates preview image, and recognize pre- The foreground area look in image and background area.In an embodiment of the present invention, foreground area includes two or more mesh Region is marked, target area is with the identical depth of field and is not required to the corresponding area of one or more objects to be blurred Domain.
Step 102, virtualization processing is carried out based on each target area, to generate corresponding depth image.
Specifically, in an embodiment of the present invention, mobile terminal carries out virtualization processing for each target area, i.e. Part (including other target areas and background parts) in addition to target area is blurred, to generate the corresponding depth of field Image.In one embodiment of the invention, mobile terminal using with preview image identical with scene not in the same time ( Every minimum) shoot picture, generate depth image.
Step 103, according to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate The virtualization image that background area is blurred.
Specifically, in an embodiment of the present invention, mobile terminal can by the corresponding depth image in each target area with it is pre- Image of looking at is synthesized, so that the background area of preview image be blurred, preview image is carried out after virtualization processing with obtaining Blur image.
In summary, the technical scheme in the embodiment of the present invention, by recognizing foreground area and background in preview image Region, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, with generation pair The depth image answered;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background The virtualization image that region is blurred.Void is carried out to the preview image with two or more target areas so as to realize Change is handled, and is effectively improved the precision of multiple target virtualization processing, and then improves Consumer's Experience.
Embodiment two
Reference picture 2, shows a kind of flow chart of weakening method in the embodiment of the present invention.
Step 201, the foreground area in identification preview image and background area.
Specifically, in an embodiment of the present invention, mobile terminal is by recognizing present in preview image two or two The characteristic information of above destination object, determines corresponding target area.Wherein, characteristic information includes but is not limited to:Yardstick, color The information such as color, shape and the depth of field.Specific recognition methods can realize that the present invention is not by object recognition algorithm of the prior art Repeat again.In one embodiment of the invention, if the depth of field of wherein several objects is identical in the multiple objects recognized, The same target area of several objects correspondence.In another embodiment of the present invention, can also each it be identified to Object corresponds to a target area respectively.The present invention is not limited this.
In addition, in one embodiment of the invention, after target area is identified mobile terminal, if mobile whole Termination receives user instruction, then recognizes corresponding target area according to user instruction.Illustrate:If mobile terminal is known in active There is error during other multiple target, i.e. exist small part region it is unrecognized out, then user can manual selection section subregion Domain.Specifically, user can indicate that mobile terminal is known again to target unrecognized in the region by way of click Not, so as to further improve the precision of multiple target virtualization.
Step 202, the corresponding virtualization value in background area is obtained.
Specifically, in an embodiment of the present invention, step 202 is specifically included:
Sub-step 2021, the corresponding background type in detection background area.Specifically, in an embodiment of the present invention, background The background type in region includes but is not limited to:The scenes such as landscape, night, avenue, interior.Detect that the method for scene can be by existing There is technology realization, do not repeat herein.
Sub-step 2022, the corresponding virtualization value of inquiry background type.
Specifically, in an embodiment of the present invention, mobile terminal is prerecorded with virtualization corresponding with each background type Value.Mobile terminal can inquire about corresponding virtualization value according to the background type after determination.Pre-setting for virtualization value can be by not Multiple training with shooting image under scene is obtained a result, and can also utilize other training methods, this is not limited by the present invention.
In addition, in another embodiment of the present invention, after inquiring virtualization value, if user is discontented to the virtualization value Meaning, can also carry out manual fine-tuning section.
Step 203, obtain and be based on the corresponding original image in each target area.
Specifically, in an embodiment of the present invention, mobile terminal needs corresponding original for the generation of each target area Image, original image is identical with preview image.In one embodiment of the invention, original image can also be mobile terminal Using with preview image identical with the image that (interval minimum) is not shot in the same time under scene.
Step 204, according to virtualization value, original image corresponding to each target area carries out virtualization processing, with acquisition pair The depth image answered.
Specifically, in an embodiment of the present invention, mobile terminal is according to the virtualization value got, to being included in original image Target area beyond region carry out virtualization processing, to obtain corresponding depth image.
Illustrate:It is mobile whole if image includes scattered standing and apart from picture pick-up device apart from 3 different people End generates corresponding depth image for everyone corresponding target area.Wherein, the depth of field of everyone corresponding target area In image, only the individual corresponding target area is not blurred, and other individuals and background area are blurred.
Step 205, according to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate The virtualization image that background area is blurred.
Specifically, in an embodiment of the present invention, mobile terminal utilizes the corresponding depth image in each target area successively Preview image is synthesized, so that preview image is gradually blurred, and the virtualization figure that background area is blurred is got Picture.
In summary, the technical scheme in the embodiment of the present invention, by recognizing foreground area and background in preview image Region, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, with generation pair The depth image answered;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background The virtualization image that region is blurred.Void is carried out to the preview image with two or more target areas so as to realize Change is handled, and is effectively improved the precision of multiple target virtualization processing, and then improves Consumer's Experience.
Embodiment three
Fig. 3 is the block diagram of the mobile terminal of one embodiment of the invention.Mobile terminal 300 shown in Fig. 3 includes identification mould Block 301, generation module 302, virtualization processing module 303.
Identification module 301, for recognizing foreground area and background area in preview image, wherein, foreground area includes At least two target areas.
Specifically, in an embodiment of the present invention, mobile terminal in shooting process, generates preview image, identification module Foreground area and background area in 301 identification preview images.In an embodiment of the present invention, foreground area includes two or two Individual above target area, target area is to be not required to the corresponding region of object to be blurred.
Processing module 302 is blurred, for carrying out virtualization processing based on each target area, to generate corresponding depth map Picture.
Specifically, in an embodiment of the present invention, virtualization processing module 302 is carried out at virtualization for each target area Reason, to generate corresponding depth image.In one embodiment of the invention, mobile terminal using with preview image identical With the picture that (interval is minimum) does not shoot in the same time under scene, depth image is generated.
Synthesis module 303, for according to the corresponding depth image in each target area, being carried out to preview image at synthesis Reason, to generate the virtualization image that background area is blurred.
Specifically, in an embodiment of the present invention, synthesis module 303 can by the corresponding depth image in each target area with Preview image is synthesized, so that the background area of preview image be blurred, preview image is carried out after virtualization processing with obtaining Virtualization image.
In summary, the mobile terminal in the embodiment of the present invention, by recognizing foreground area and background in preview image Region, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, with generation pair The depth image answered;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background The virtualization image that region is blurred.Void is carried out to the preview image with two or more target areas so as to realize Change is handled, and is effectively improved the precision of multiple target virtualization processing, and then improves Consumer's Experience.
In addition, in a preferred embodiment of the invention, identification module 301 can also be further used for by identification The characteristic information of at least two destination object present in preview image, determines corresponding target area.If also, receiving To user instruction, then corresponding target area is recognized according to user instruction.
Alternatively, in one embodiment, virtualization processing module 302 can further include:First acquisition submodule 401st, the second acquisition submodule 402, virtualization processing submodule 403.Reference picture 4.
First acquisition submodule 401, for obtaining the corresponding virtualization value in background area.
Second acquisition submodule 402, the corresponding original image in each target area is based on for obtaining.
Virtualization processing submodule 403, for according to virtualization value, original image corresponding to each target area to be blurred Processing, to obtain corresponding depth image.
Wherein, the first acquisition submodule 401 may further include:
Detection unit (not shown), for detecting the corresponding background type in background area.
Query unit (not shown), for inquiring about the corresponding virtualization value of background type.
Correspondingly, in one embodiment, virtualization processing submodule 403 can be further used for:According to virtualization value, to original Region beyond the target area included in beginning image carries out virtualization processing, to obtain corresponding depth image.
Example IV
Fig. 5 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 500 shown in Fig. 5 includes:At least One processor 501, memory 502, at least one network interface 504 and other users interface 503.In mobile terminal 500 Each component is coupled by bus system 505.It is understood that bus system 505 is used to realize the company between these components Connect letter.Bus system 505 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But It is that for the sake of clear explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 502 of the system and method for description of the embodiment of the present invention is intended to include but not limited In these memories with any other suitable type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 5022, includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 5022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 502, specifically, can be application The program stored in program 5022 or instruction, processor 501 are used to obtain foreground area and background area in identification preview image Domain, wherein, foreground area includes at least two target area;Virtualization processing is carried out based on each target area, to generate Corresponding depth image;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate the back of the body The virtualization image that scene area is blurred.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501. Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing Device 501 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or other PLDs, discrete gate or transistor logic Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only storage can In the ripe storage medium in this area such as program read-only memory or electrically erasable programmable memory, register.The storage Medium is located at memory 502, and processor 501 reads the information in memory 502, and the step of the above method is completed with reference to its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing herein described function In member or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Alternatively, processor 501 is used for the spy by recognizing at least two destination object present in preview image Reference ceases, and determines corresponding target area.If receiving user instruction, corresponding target area is recognized according to user instruction.
Alternatively, processor 501 is additionally operable to:Obtain the corresponding virtualization value in background area;Obtain and be based on each target area Corresponding original image;According to virtualization value, original image corresponding to each target area carries out virtualization processing, to obtain correspondence Depth image.
Alternatively, as another embodiment, processor 501 is additionally operable to:Detect the corresponding background type in background area;Look into Ask the corresponding virtualization value of background type.
Alternatively, processor 501 is additionally operable to:According to virtualization value, to the area beyond the target area that is included in original image Domain carries out virtualization processing, to obtain corresponding depth image.
Mobile terminal 500 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
In summary, the mobile terminal in the embodiment of the present invention, by recognizing foreground area and background in preview image Region, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, with generation pair The depth image answered;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background The virtualization image that region is blurred.Void is carried out to the preview image with two or more target areas so as to realize Change is handled, and is effectively improved the precision of multiple target virtualization processing, and then improves Consumer's Experience.
Embodiment five
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6 600 can be mobile phone, tablet personal computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 600 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input list Member 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (WirelessFidelity) module 680 and power supply 690。
Wherein, input block 630 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal The signal input that 600 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 630 can With including contact panel 631.Contact panel 631, also referred to as touch-screen, collect touch operation of the user on or near it (such as user uses the operations of any suitable object or annex on contact panel 631 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller Two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give the processor 660 again, and the order sent of reception processing device 660 and can be performed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block 630 can also include other input equipments 632, and other input equipments 632 can include but is not limited to physical keyboard, function key One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 640 can be used for information and the movement for showing the information inputted by user or being supplied to user The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hairs The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection Measure after the touch operation on or near it, processor 660 is sent to determine the type of touch event, with preprocessor 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, utilizes various interfaces and connection whole mobile phone Various pieces, software program and/or module in first memory 621 are stored in by operation or execution, and call storage Data in second memory 622, perform the various functions and processing data of mobile terminal 600, so as to mobile terminal 600 Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, foreground area and background area that processor 660 is used in acquisition identification preview image Domain, wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, to generate correspondence Depth image;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background area The virtualization image that domain is blurred.
Alternatively, processor 660 is used for the spy by recognizing at least two destination object present in preview image Reference ceases, and determines corresponding target area.If receiving user instruction, corresponding target area is recognized according to user instruction.
Alternatively, processor 660 is additionally operable to:Obtain the corresponding virtualization value in background area;Obtain and be based on each target area Corresponding original image;According to virtualization value, original image corresponding to each target area carries out virtualization processing, to obtain correspondence Depth image.
Alternatively, as another embodiment, processor 660 is additionally operable to:Detect the corresponding background type in background area;Look into Ask the corresponding virtualization value of background type.
Alternatively, processor 660 is additionally operable to:According to virtualization value, to the area beyond the target area that is included in original image Domain carries out virtualization processing, to obtain corresponding depth image.
It can be seen that, the mobile terminal in the embodiment of the present invention, by recognizing foreground area and background area in preview image, Wherein, foreground area includes at least two target areas;Virtualization processing is carried out based on each target area, to generate corresponding scape Deep image;According to the corresponding depth image in each target area, synthesis processing is carried out to preview image, to generate background area quilt The virtualization image of virtualization.The preview image with two or more target areas is carried out at virtualization so as to realize Reason, is effectively improved the precision of multiple target virtualization processing, and then improves Consumer's Experience.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of weakening method, applied to mobile terminal, it is characterised in that methods described includes:
The foreground area in preview image and background area are recognized, wherein, the foreground area includes at least two target areas;
Virtualization processing is carried out based on each target area, to generate corresponding depth image;
According to the corresponding depth image in each target area, synthesis processing is carried out to the preview image, to generate the background The virtualization image that region is blurred.
2. according to the method described in claim 1, it is characterised in that foreground area and background area in the identification preview image The step of domain, specifically include:
By recognizing the characteristic information of at least two destination objects present in the preview image, corresponding target area is determined Domain;
If receiving user instruction, corresponding target area is recognized according to the user instruction.
3. according to the method described in claim 1, it is characterised in that described to carry out virtualization processing based on each target area, with The step of generating corresponding depth image, specifically includes:
Obtain the corresponding virtualization value in the background area;
Obtain and be based on the corresponding original image in each target area;
According to the virtualization value, original image corresponding to each target area carries out virtualization processing, to obtain the corresponding depth of field Image.
4. method according to claim 3, it is characterised in that the step of the corresponding virtualization value in the acquisition background area Suddenly, specifically include:
Detect the corresponding background type in background area;
Inquire about the corresponding virtualization value of the background type.
5. method according to claim 3, it is characterised in that described according to the virtualization value, to each target area pair The step of original image answered carries out virtualization processing, specifically includes:
According to the virtualization value, virtualization processing is carried out to the region beyond the target area that is included in the original image, to obtain Take corresponding depth image.
6. a kind of mobile terminal, it is characterised in that including:
Identification module, for recognizing foreground area and background area in preview image, wherein, the foreground area is included at least Two target areas;
Processing module is blurred, for carrying out virtualization processing based on each target area, to generate corresponding depth image;
Synthesis module, for carrying out synthesis processing to the preview image according to the corresponding depth image in each target area, with Generate the virtualization image that the background area is blurred.
7. mobile terminal according to claim 6, it is characterised in that the identification module is further used for:
By recognizing the characteristic information of at least two destination objects present in the preview image, corresponding target area is determined Domain;
If receiving user instruction, corresponding target area is recognized according to the user instruction.
8. mobile terminal according to claim 6, it is characterised in that the virtualization processing module further comprises:
First acquisition submodule, for obtaining the corresponding virtualization value in the background area;
Second acquisition submodule, the corresponding original image in each target area is based on for obtaining;
Virtualization processing submodule, for according to the virtualization value, original image corresponding to each target area to be carried out at virtualization Reason, to obtain corresponding depth image.
9. mobile terminal according to claim 8, it is characterised in that first acquisition submodule further comprises:
Detection unit, for detecting the corresponding background type in background area;
Query unit, for inquiring about the corresponding virtualization value of the background type.
10. mobile terminal according to claim 8, it is characterised in that the virtualization processing submodule is further used for:
According to the virtualization value, virtualization processing is carried out to the region beyond the target area that is included in the original image, to obtain Take corresponding depth image.
CN201710297532.XA 2017-04-28 2017-04-28 Virtualization method and mobile terminal Active CN107172346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710297532.XA CN107172346B (en) 2017-04-28 2017-04-28 Virtualization method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710297532.XA CN107172346B (en) 2017-04-28 2017-04-28 Virtualization method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107172346A true CN107172346A (en) 2017-09-15
CN107172346B CN107172346B (en) 2020-02-07

Family

ID=59812893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710297532.XA Active CN107172346B (en) 2017-04-28 2017-04-28 Virtualization method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107172346B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107613203A (en) * 2017-09-22 2018-01-19 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108109100A (en) * 2017-12-19 2018-06-01 维沃移动通信有限公司 A kind of image processing method, mobile terminal
CN108154465A (en) * 2017-12-19 2018-06-12 北京小米移动软件有限公司 Image processing method and device
CN108230333A (en) * 2017-11-28 2018-06-29 深圳市商汤科技有限公司 Image processing method, device, computer program, storage medium and electronic equipment
CN108776800A (en) * 2018-06-05 2018-11-09 Oppo广东移动通信有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
WO2020087486A1 (en) * 2018-11-02 2020-05-07 Oppo广东移动通信有限公司 Depth image processing method, depth image processing apparatus and electronic apparatus
WO2020107186A1 (en) * 2018-11-26 2020-06-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Systems and methods for taking telephoto-like images
CN112785487A (en) * 2019-11-06 2021-05-11 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426093A (en) * 2007-10-29 2009-05-06 株式会社理光 Image processing device, image processing method, and computer program product
CN101587586A (en) * 2008-05-20 2009-11-25 株式会社理光 Device and method for processing images
CN102572262A (en) * 2010-10-28 2012-07-11 三洋电机株式会社 Electronic equipment
CN103297699A (en) * 2013-05-31 2013-09-11 北京小米科技有限责任公司 Method and terminal for shooting images
CN103533244A (en) * 2013-10-21 2014-01-22 深圳市中兴移动通信有限公司 Shooting device and automatic visual effect processing shooting method thereof
CN104219445A (en) * 2014-08-26 2014-12-17 小米科技有限责任公司 Method and device for adjusting shooting modes
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105141858A (en) * 2015-08-13 2015-12-09 上海斐讯数据通信技术有限公司 Photo background blurring system and photo background blurring method
CN105204624A (en) * 2015-08-28 2015-12-30 努比亚技术有限公司 Fuzzy processing method and device for shooting
CN105979165A (en) * 2016-06-02 2016-09-28 广东欧珀移动通信有限公司 Blurred photos generation method, blurred photos generation device and mobile terminal
US20170006212A1 (en) * 2015-07-01 2017-01-05 Hon Hai Precision Industry Co., Ltd. Device, system and method for multi-point focus
CN106454086A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Image processing method and mobile terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426093A (en) * 2007-10-29 2009-05-06 株式会社理光 Image processing device, image processing method, and computer program product
CN101587586A (en) * 2008-05-20 2009-11-25 株式会社理光 Device and method for processing images
CN102572262A (en) * 2010-10-28 2012-07-11 三洋电机株式会社 Electronic equipment
CN103297699A (en) * 2013-05-31 2013-09-11 北京小米科技有限责任公司 Method and terminal for shooting images
CN103533244A (en) * 2013-10-21 2014-01-22 深圳市中兴移动通信有限公司 Shooting device and automatic visual effect processing shooting method thereof
CN104219445A (en) * 2014-08-26 2014-12-17 小米科技有限责任公司 Method and device for adjusting shooting modes
US20170006212A1 (en) * 2015-07-01 2017-01-05 Hon Hai Precision Industry Co., Ltd. Device, system and method for multi-point focus
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105141858A (en) * 2015-08-13 2015-12-09 上海斐讯数据通信技术有限公司 Photo background blurring system and photo background blurring method
CN105204624A (en) * 2015-08-28 2015-12-30 努比亚技术有限公司 Fuzzy processing method and device for shooting
CN105979165A (en) * 2016-06-02 2016-09-28 广东欧珀移动通信有限公司 Blurred photos generation method, blurred photos generation device and mobile terminal
CN106454086A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Image processing method and mobile terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613203A (en) * 2017-09-22 2018-01-19 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107613203B (en) * 2017-09-22 2020-01-14 维沃移动通信有限公司 Image processing method and mobile terminal
CN107592466A (en) * 2017-10-13 2018-01-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108230333A (en) * 2017-11-28 2018-06-29 深圳市商汤科技有限公司 Image processing method, device, computer program, storage medium and electronic equipment
CN108109100A (en) * 2017-12-19 2018-06-01 维沃移动通信有限公司 A kind of image processing method, mobile terminal
CN108154465A (en) * 2017-12-19 2018-06-12 北京小米移动软件有限公司 Image processing method and device
CN108109100B (en) * 2017-12-19 2019-11-22 维沃移动通信有限公司 A kind of image processing method, mobile terminal
CN108776800B (en) * 2018-06-05 2021-03-12 Oppo广东移动通信有限公司 Image processing method, mobile terminal and computer readable storage medium
CN108776800A (en) * 2018-06-05 2018-11-09 Oppo广东移动通信有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
WO2020087486A1 (en) * 2018-11-02 2020-05-07 Oppo广东移动通信有限公司 Depth image processing method, depth image processing apparatus and electronic apparatus
US11562496B2 (en) 2018-11-02 2023-01-24 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Depth image processing method, depth image processing apparatus and electronic device
WO2020107186A1 (en) * 2018-11-26 2020-06-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Systems and methods for taking telephoto-like images
CN113056905A (en) * 2018-11-26 2021-06-29 Oppo广东移动通信有限公司 System and method for taking tele-like images
CN113056905B (en) * 2018-11-26 2023-08-04 Oppo广东移动通信有限公司 System and method for photographing tele-like image
CN112785487A (en) * 2019-11-06 2021-05-11 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment
CN112785487B (en) * 2019-11-06 2023-08-04 RealMe重庆移动通信有限公司 Image processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107172346B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107172346A (en) A kind of weakening method and mobile terminal
CN106791400B (en) A kind of image display method and mobile terminal
CN107181913B (en) A kind of photographic method and mobile terminal
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN107678641A (en) A kind of method and mobile terminal into target display interface
CN106126108B (en) A kind of generation method and mobile terminal of thumbnail
CN105847674A (en) Preview image processing method based on mobile terminal, and mobile terminal therein
CN107317993A (en) A kind of video call method and mobile terminal
CN106027900A (en) Photographing method and mobile terminal
CN107395997A (en) A kind of image pickup method and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN107707823A (en) A kind of image pickup method and mobile terminal
CN106210512B (en) A kind of camera switching method and mobile terminal
CN107390990A (en) The method of adjustment and mobile terminal of a kind of image
CN106648035A (en) Image resolution adjusting method and mobile terminal
CN107302655B (en) It is a kind of to shoot the adjusting method and mobile terminal found a view
CN107395976A (en) A kind of acquisition parameters method to set up and mobile terminal
CN107734156A (en) A kind of image pickup method and mobile terminal
CN107483821A (en) A kind of image processing method and mobile terminal
CN106454086A (en) Image processing method and mobile terminal
CN107404577A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN106911897A (en) A kind of determination method and mobile terminal for shooting focus
CN107592458A (en) A kind of image pickup method and mobile terminal
CN106888354A (en) A kind of singlehanded photographic method and mobile terminal
CN106993091A (en) A kind of image weakening method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant