CN108495030A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- Publication number
- CN108495030A CN108495030A CN201810220651.XA CN201810220651A CN108495030A CN 108495030 A CN108495030 A CN 108495030A CN 201810220651 A CN201810220651 A CN 201810220651A CN 108495030 A CN108495030 A CN 108495030A
- Authority
- CN
- China
- Prior art keywords
- image
- pending image
- subregion
- mobile terminal
- virtualization
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/2224—Studio circuitry; Studio devices; Studio equipment related to virtual studio applications
- H04N5/2226—Determination of depth image, e.g. for foreground/background separation
Abstract
An embodiment of the present invention provides a kind of image processing method and mobile terminal, method includes:Pending image is obtained, determines body region and the background area of pending image;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions, wherein preset kind image is the image for including distant view region and close shot region;All subregion is blurred according to different virtualization degree, generates first object image.Mobile terminal based on single camera may be implemented pending image carrying out layering virtualization, and blur the effect that effect is blurred closer to physics, can promote the usage experience of user.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of image processing method and mobile terminal.
Background technology
With advances in technology with the development of society, mobile terminal is more and more important in our life, wherein
Camera-enabled has become the standard configuration of mobile terminal.It, can be to image when carrying out virtualization shooting using mobile terminal at present
Carry out virtualization processing.It is broadly divided into singly to take the photograph to blur and takes the photograph two kinds of styles of shooting of virtualization with double, singly take the photograph virtualization and mobile terminal is required to have
One camera, however singly take the photograph virtualization and shoot the image shortage stereovision come.Using double virtualization style of shooting institutes taken the photograph
Though the image stereovision of shooting is strong, requires mobile terminal to have two cameras and hardware cost height just may be implemented.
As it can be seen that in existing image virtualization style of shooting, can not the strong virtualization figure of stereovision be shot using single camera
The shooting experience of picture, user is poor.
Invention content
The embodiment of the present invention provides a kind of image processing method and mobile terminal, can not be used with to solve the prior art and singly be taken the photograph
The problem of stereovision strong virtualization image being taken as head.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of image processing methods, including:Pending image is obtained, is determined
The body region of the pending image and background area;If the pending image is preset kind image, waited for described
Processing image background area decile obtain multiple subregions, wherein preset kind image be include distant view region and close shot area
The image in domain;Each subregion is blurred according to different virtualization degree, generates first object image.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes:Acquisition module,
For obtaining pending image, body region and the background area of the pending image are determined;Determining module, if for described
Pending image is preset kind image, then the background area decile of the pending image is obtained multiple subregions, wherein
Preset kind image is the image for including distant view region and close shot region;Blurring module is used for each subregion according to not
Same virtualization degree is blurred, and first object image is generated.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory and are stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
The step of realizing the image processing method.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
Computer program is stored on storage media, and the step of the image processing method is realized when the computer program is executed by processor
Suddenly.
In embodiments of the present invention, by obtaining pending image, the body region and background area of pending image are determined
Domain;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions;It will be each
Subregion is blurred according to different virtualization degree, generates first object image.It realizes the pending image of preset kind
Layering virtualization is carried out, and blurs the effect that effect is blurred closer to physics, the usage experience of user can be promoted.In addition, by
Virtualization processing is carried out to image using single camera in this programme, can achieve the effect that dual camera image procossing, to drop
The cost of low hardware.
Description of the drawings
Fig. 1 is a kind of step flow chart of image processing method of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of image processing method of the embodiment of the present invention two;
Fig. 3 is that pending image of the embodiment of the present invention etc. divides schematic diagram;
Fig. 4 is a kind of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 5 is a kind of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 6 is a kind of hardware architecture diagram of mobile terminal of the embodiment of the present invention five.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of image processing method of the embodiment of the present invention one is shown.
Image processing method provided in an embodiment of the present invention includes the following steps:
Step 101:Pending image is obtained, determines body region and the background area of pending image.
The camera of mobile terminal is called to carry out image taking, using the image after shooting as pending image.Wherein, it waits for
It includes that body region and background area determine pending image by histograms of oriented gradients feature extracting method to handle image
Body region and background area
Step 102:If pending image is preset kind image, the background area decile of pending image is obtained more
Sub-regions.
Wherein, preset kind image is the image for including distant view region and close shot region.
In actual use, whether can be judged by iterative algorithm in pending image comprising distant view region and close
Scene area, if including if determine pending image be preset kind image, the background area of pending image is divided into
Multiple subregions, and trigger the function that layering virtualization is carried out to pending image.If pending image is non-default types of image,
It when carrying out virtualization processing to pending image, is then handled according to conventional treatment mode, conventional treatment mode generally will figure
As not doing virtualization processing or being needed according to user, local virtualization is carried out to pending image.
It should be noted that the embodiment of the present invention is not specifically limited the quantity of decile, 3 sub-districts can be divided into
Domain, 4 sub-regions, 5 sub-regions etc..
Step 103:All subregion is blurred according to different virtualization degree, generates first object image.
Wherein, a virtualization value is corresponded to per sub-regions, and each sub-regions are subjected to void according to the virtualization value of all subregion
Change, generate first object image, the first object image generated is the image after layering virtualization.
In embodiments of the present invention, by obtaining pending image, the body region and background area of pending image are determined
Domain;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions;It will be each
Subregion is blurred according to different virtualization degree, generates first object image.It realizes the pending image of preset kind
Layering virtualization is carried out, and blurs the effect that effect is blurred closer to physics, the usage experience of user can be promoted.In addition, by
Virtualization processing is carried out to image using single camera in this programme, can achieve the effect that dual camera image procossing, to drop
The cost of low hardware.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of image processing method of the embodiment of the present invention two is shown.
Image processing method provided in an embodiment of the present invention includes the following steps:
Step 201:Pending image is obtained, determines body region and the background area of pending image.
It calls the single camera of mobile terminal to acquire image to be captured simultaneously to be shot, using the image after shooting as waiting locating
Manage image, wherein include body region and background area in pending image.
Specifically, by histograms of oriented gradients feature extracting method, the body region and background of pending image are determined
Region.
The tool of the body region and background area of pending image is determined by histograms of oriented gradients feature extracting method
Body mode is:Pending image is subjected to gray processing processing, then using parameters of display correction method to the pending image of input
The standardization for carrying out color space, the gradient of each pixel in the pending image after normalized, by waiting for after standardization
Processing image is divided into several cells, and each cell includes several pixels, and one is formed per adjacent N number of cell
Block counts the histogram of gradients of all pixels in each cell, further according to the histogram of gradients of all cells in each piece
Each piece of HOG features are obtained, the HOG features of all pieces of statistics obtain image HOG features, and finally all pieces of feature is connected
Get up, has just obtained the feature of human body to get to body region.Using the region in addition to body region as background area.
It is removed when it should be noted that determining body region and the background area of pending image and passes through histograms of oriented gradients
Outside feature extracting method, can also by LBP (Local Binary Pattern, local binary patterns) feature extracting methods with
And wavelet character extracting method determines body region and background area in pending image.
Step 202:If pending image is preset kind image, determine pending image in the display side of mobile terminal
To.
Preset kind image is the image for including distant view region and close shot region.
During specific implementation, it can judge whether image is preset kind image, a width figure by the feature of image
As there is very various features, and the image of same type has certain similitude, common image in terms of characteristics of image
Feature has color characteristic, textural characteristics, shape feature, space characteristics etc..The embodiment of the present invention is directed to the space of pending image
Feature carries out pending image the label in distant view region and close shot region, and based on iterative algorithm to pending after label
Image is handled, and detects whether pending image is preset kind image.
When pending image is preset kind image, it is determined that pending image is shown in the display direction of mobile terminal
Show that direction is generally transverse screen display or vertical screen display.
Step 203:The background area of pending image is divided into multiple subregions according to display direction.
When pending image transverse screen display, then pending image is divided into multiple subregions according to X direction, when
When pending image vertical screen display, then pending image is divided into multiple subregions according to y direction.It should be noted that
The embodiment of the present invention is not specifically limited the quantity of decile, can be divided into 3 sub-regions, 4 sub-regions, 5 sub-regions
Deng.
Step 204:According to the relative position of all subregion, the corresponding virtualization value of all subregion is determined.
Wherein, the virtualization value of all subregion is sequentially reduced according to regional location.
Specifically, when pending image is divided into three regions along y direction, three sub-regions are from top to bottom
Sequence is the first subregion, the second subregion and third subregion, and the virtualization value of the first subregion is more than the second subregion
Virtualization value, the virtualization value of the second subregion are more than the virtualization value of third subregion, i.e., are sequentially reduced according to the sequence under upper,
It is either sequentially increased according to the sequence under upper or when pending image is divided into multiple subregions along X direction
When, the virtualization values of each sub-regions according to being sequentially reduced/increase from left to right.
Specifically, as shown in figure 3, divide schematic diagram for pending image etc., pending image is divided into 4 parts, respectively
T1、T2、T3、T4The size order of the corresponding virtualization value of subregion, wherein all subregion is T1>T2>T3>T4。
Step 205:For every sub-regions, all subregion is blurred according to the virtualization value of subregion.
All subregion can be blurred based on Gauss algorithm, it is to subregion to carry out virtualization processing essence to subregion
In each pixel take the average value of neighboring pixel, i.e. virtualization value.In embodiments of the present invention, pending image is obtained,
Determine body region and the background area of pending image;If pending image is preset kind image, by pending image
Background area decile obtain multiple subregions;All subregion is blurred according to different virtualization degree, generates the first mesh
Logo image.It realizes and the pending image of preset kind is subjected to layering virtualization, and blur the effect that effect is blurred closer to physics
Fruit, can promote the usage experience of user, and since this programme using single camera carries out virtualization processing to image, can reach
The effect of dual camera image procossing, in addition, according to the display direction of pending image, will wait for reduce the cost of hardware
Processing image is divided into multiple subregions and is blurred, and the virtualization of more convenient completion image is further promoted and used
The usage experience at family.
Embodiment three
With reference to Fig. 4, a kind of structure diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes:Acquisition module 301 determines institute for obtaining pending image
State body region and the background area of pending image;Determining module 302, if being preset kind figure for the pending image
The background area decile of the pending image is then obtained multiple subregions by picture, wherein preset kind image be include distant view
The image in region and close shot region;Blurring module 303, it is empty for carrying out each subregion according to different virtualization degree
Change, generates first object image.
In embodiments of the present invention, by obtaining pending image, the body region and background area of pending image are determined
Domain;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions;It will be each
Subregion is blurred according to different virtualization degree, generates first object image.It realizes the pending image of preset kind
Layering virtualization is carried out, and blurs the effect that effect is blurred closer to physics, the usage experience of user can be promoted.In addition, by
Virtualization processing is carried out to image using single camera in this programme, can achieve the effect that dual camera image procossing, to drop
The cost of low hardware.
Example IV
With reference to Fig. 5, a kind of structure diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes:Acquisition module 401 determines institute for obtaining pending image
State body region and the background area of pending image;Determining module 402, if being preset kind figure for the pending image
The background area decile of the pending image is then obtained multiple subregions by picture, wherein preset kind image be include distant view
The image in region and close shot region;Blurring module 403, it is empty for carrying out each subregion according to different virtualization degree
Change, generates first object image.
Preferably, the determining module 402 includes:First determination sub-module 4021, for determining the pending image
In the display direction of the mobile terminal;Divide submodule 4022, for according to the display direction by the back of the body of pending image
Scene area is divided into multiple subregions.
Preferably, the blurring module 403 includes:Second determination sub-module 4031 is used for the second determination sub-module, is used for
According to the relative position of each subregion, the corresponding virtualization value of each subregion is determined, wherein each subregion
Virtualization value be sequentially reduced according to regional location;Submodule 4032 is blurred, for being directed to each subregion, according to the son
The virtualization value in region blurs each subregion.
Preferably, the acquisition module 401 is specifically used for:By histograms of oriented gradients feature extracting method, institute is determined
State body region and the background area of pending image.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2
Each process, to avoid repeating, which is not described herein again.
In embodiments of the present invention, by obtaining pending image, the body region and background area of pending image are determined
Domain;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions;It will be each
Subregion is blurred according to different virtualization degree, generates first object image.It realizes the pending image of preset kind
Layering virtualization is carried out, and blurs the effect that effect is blurred closer to physics, the usage experience of user can be promoted, and due to this
Scheme carries out virtualization processing using single camera to image, can achieve the effect that dual camera image procossing, hard to reduce
Pending image is divided into multiple subregions and carries out void by the cost of part in addition, according to the display direction of pending image
Change, the virtualization of more convenient completion image further promotes the usage experience of user.
Embodiment five
With reference to Fig. 6, the hardware architecture diagram of a kind of mobile terminal of each embodiment to realize the present invention.
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510 determines body region and the background area of the pending image for obtaining pending image;
If the pending image is preset kind image, the background area decile of the pending image is obtained into multiple sub-districts
Domain, wherein preset kind image is the image for including distant view region and close shot region;By each subregion according to different void
Change degree is blurred, and first object image is generated.
In embodiments of the present invention, by obtaining pending image, the body region and background area of pending image are determined
Domain;If pending image is preset kind image, the background area decile of pending image is obtained into multiple subregions;It will be each
Subregion is blurred according to different virtualization degree, generates first object image.It realizes the pending image of preset kind
Layering virtualization is carried out, and blurs the effect that effect is blurred closer to physics, the usage experience of user can be promoted.In addition, by
Virtualization processing is carried out to image using single camera in this programme, can achieve the effect that dual camera image procossing, to drop
The cost of low hardware.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch
The type for touching event provides corresponding visual output on display panel 5061.Although in figure 6, touch panel 5071 and display
Panel 5061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Transmission data between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can be run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
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 embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (10)
1. a kind of image processing method is applied to mobile terminal, which is characterized in that the method includes:
Pending image is obtained, determines body region and the background area of the pending image;
If the pending image is preset kind image, the background area decile of the pending image is obtained into multiple sons
Region, wherein preset kind image is the image for including distant view region and close shot region;
Each subregion is blurred according to different virtualization degree, generates first object image.
2. according to the method described in claim 1, it is characterized in that, the background area decile of the pending image is obtained more
The step of sub-regions, including:
Determine the pending image the mobile terminal display direction;
The background area of pending image is divided into multiple subregions according to the display direction.
3. according to the method described in claim 1, it is characterized in that, each subregion is carried out according to different virtualization degree
The step of virtualization, including:
According to the relative position of each subregion, the corresponding virtualization value of each subregion is determined, wherein each son
The virtualization value in region is sequentially reduced according to regional location;
For each subregion, each subregion is blurred according to the virtualization value of the subregion.
4. according to the method described in claim 1, it is characterized in that, the body region and the back of the body of the determination pending image
The step of scene area includes:
By histograms of oriented gradients feature extracting method, body region and the background area of the pending image are determined.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Acquisition module determines body region and the background area of the pending image for obtaining pending image;
Determining module, if being preset kind image for the pending image, by the background area of the pending image
Decile obtains multiple subregions, wherein preset kind image is the image for including distant view region and close shot region;
Blurring module generates first object image for blurring each subregion according to different virtualization degree.
6. mobile terminal according to claim 5, which is characterized in that the determining module includes:
First determination sub-module, for determine the pending image the mobile terminal display direction;
Submodule is divided, for the background area of pending image to be divided into multiple subregions according to the display direction.
7. mobile terminal according to claim 5, which is characterized in that the blurring module includes:
Second determination sub-module determines the corresponding virtualization of each subregion for the relative position according to each subregion
Value, wherein the virtualization value of each subregion is sequentially reduced according to regional location;
Blur submodule, for for each subregion, according to the subregion virtualization value to each subregion into
Row virtualization.
8. according to the method described in claim 6, it is characterized in that, the acquisition module is specifically used for:It is straight by direction gradient
Square figure feature extracting method determines body region and the background area of the pending image.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4
The step of any one of them image processing method.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the computer program realize image processing method according to any one of claims 1 to 4 when being executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810220651.XA CN108495030A (en) | 2018-03-16 | 2018-03-16 | A kind of image processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810220651.XA CN108495030A (en) | 2018-03-16 | 2018-03-16 | A kind of image processing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108495030A true CN108495030A (en) | 2018-09-04 |
Family
ID=63339829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810220651.XA Pending CN108495030A (en) | 2018-03-16 | 2018-03-16 | A kind of image processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108495030A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112449120A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | High dynamic range video generation method and device |
CN112986141A (en) * | 2021-02-05 | 2021-06-18 | 爱威科技股份有限公司 | Layered image collection method and device, computer equipment and storage medium |
CN112986141B (en) * | 2021-02-05 | 2024-04-30 | 爱威科技股份有限公司 | Hierarchical image acquisition method, hierarchical image acquisition device, computer equipment and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102975659A (en) * | 2012-11-14 | 2013-03-20 | 沈阳理工大学 | Automobile night driving pre-warning system and method based on far infrared image |
CN103077500A (en) * | 2012-12-30 | 2013-05-01 | 信帧电子技术(北京)有限公司 | Image data defogging method and device |
CN103152521A (en) * | 2013-01-30 | 2013-06-12 | 广东欧珀移动通信有限公司 | Effect of depth of field achieving method for mobile terminal and mobile terminal |
US20130258138A1 (en) * | 2012-03-30 | 2013-10-03 | Samsung Electronics Co., Ltd. | Apparatus for generating an image with defocused background and method thereof |
CN103973977A (en) * | 2014-04-15 | 2014-08-06 | 联想(北京)有限公司 | Blurring processing method and device for preview interface and electronic equipment |
CN104751405A (en) * | 2015-03-11 | 2015-07-01 | 百度在线网络技术(北京)有限公司 | Method and device for blurring image |
CN105141858A (en) * | 2015-08-13 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Photo background blurring system and photo background blurring method |
CN105516586A (en) * | 2015-12-01 | 2016-04-20 | 小米科技有限责任公司 | Picture shooting method, device and system |
CN105578070A (en) * | 2015-12-21 | 2016-05-11 | 深圳市金立通信设备有限公司 | Image processing method and terminal |
CN106331492A (en) * | 2016-08-29 | 2017-01-11 | 广东欧珀移动通信有限公司 | Image processing method and terminal |
CN106548185A (en) * | 2016-11-25 | 2017-03-29 | 三星电子(中国)研发中心 | A kind of foreground area determines method and apparatus |
CN107277354A (en) * | 2017-07-03 | 2017-10-20 | 努比亚技术有限公司 | One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium |
CN107370958A (en) * | 2017-08-29 | 2017-11-21 | 广东欧珀移动通信有限公司 | Image virtualization processing method, device and camera terminal |
CN107749046A (en) * | 2017-10-27 | 2018-03-02 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
-
2018
- 2018-03-16 CN CN201810220651.XA patent/CN108495030A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130258138A1 (en) * | 2012-03-30 | 2013-10-03 | Samsung Electronics Co., Ltd. | Apparatus for generating an image with defocused background and method thereof |
CN102975659A (en) * | 2012-11-14 | 2013-03-20 | 沈阳理工大学 | Automobile night driving pre-warning system and method based on far infrared image |
CN103077500A (en) * | 2012-12-30 | 2013-05-01 | 信帧电子技术(北京)有限公司 | Image data defogging method and device |
CN103152521A (en) * | 2013-01-30 | 2013-06-12 | 广东欧珀移动通信有限公司 | Effect of depth of field achieving method for mobile terminal and mobile terminal |
CN103973977A (en) * | 2014-04-15 | 2014-08-06 | 联想(北京)有限公司 | Blurring processing method and device for preview interface and electronic equipment |
CN104751405A (en) * | 2015-03-11 | 2015-07-01 | 百度在线网络技术(北京)有限公司 | Method and device for blurring image |
CN105141858A (en) * | 2015-08-13 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Photo background blurring system and photo background blurring method |
CN105516586A (en) * | 2015-12-01 | 2016-04-20 | 小米科技有限责任公司 | Picture shooting method, device and system |
CN105578070A (en) * | 2015-12-21 | 2016-05-11 | 深圳市金立通信设备有限公司 | Image processing method and terminal |
CN106331492A (en) * | 2016-08-29 | 2017-01-11 | 广东欧珀移动通信有限公司 | Image processing method and terminal |
CN106548185A (en) * | 2016-11-25 | 2017-03-29 | 三星电子(中国)研发中心 | A kind of foreground area determines method and apparatus |
CN107277354A (en) * | 2017-07-03 | 2017-10-20 | 努比亚技术有限公司 | One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium |
CN107370958A (en) * | 2017-08-29 | 2017-11-21 | 广东欧珀移动通信有限公司 | Image virtualization processing method, device and camera terminal |
CN107749046A (en) * | 2017-10-27 | 2018-03-02 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112449120A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | High dynamic range video generation method and device |
CN112449120B (en) * | 2019-08-30 | 2022-06-10 | 华为技术有限公司 | High dynamic range video generation method and device |
CN112986141A (en) * | 2021-02-05 | 2021-06-18 | 爱威科技股份有限公司 | Layered image collection method and device, computer equipment and storage medium |
CN112986141B (en) * | 2021-02-05 | 2024-04-30 | 爱威科技股份有限公司 | Hierarchical image acquisition method, hierarchical image acquisition device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107580184B (en) | A kind of image pickup method and mobile terminal | |
CN107707827A (en) | A kind of high-dynamics image image pickup method and mobile terminal | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107977652A (en) | The extracting method and mobile terminal of a kind of screen display content | |
CN107864336B (en) | A kind of image processing method, mobile terminal | |
CN108989678A (en) | A kind of image processing method, mobile terminal | |
CN107682639B (en) | A kind of image processing method, device and mobile terminal | |
CN108492246A (en) | A kind of image processing method, device and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN109547054A (en) | Signal control circuit, terminal device and signal control method | |
CN108234882A (en) | A kind of image weakening method and mobile terminal | |
CN108989668A (en) | A kind of working method and mobile terminal of camera | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN107734260A (en) | A kind of image processing method and mobile terminal | |
CN109788136A (en) | Information display method and mobile terminal | |
CN110035149A (en) | A kind of multiple antennas optimization method and mobile terminal | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN107886321A (en) | A kind of method of payment and mobile terminal | |
CN108307110A (en) | A kind of image weakening method and mobile terminal | |
CN109144361A (en) | A kind of image processing method and terminal device | |
CN110399000A (en) | A kind of mobile terminal temperature control method mobile terminal | |
CN108335258A (en) | A kind of image processing method and device of mobile terminal | |
CN108174081B (en) | A kind of image pickup method and mobile terminal | |
CN109819166A (en) | A kind of image processing method and electronic equipment | |
CN109005355A (en) | A kind of image pickup 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180904 |
|
RJ01 | Rejection of invention patent application after publication |