CN107798662A - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN107798662A
CN107798662A CN201710971492.2A CN201710971492A CN107798662A CN 107798662 A CN107798662 A CN 107798662A CN 201710971492 A CN201710971492 A CN 201710971492A CN 107798662 A CN107798662 A CN 107798662A
Authority
CN
China
Prior art keywords
layer
original
light source
image
mobile terminal
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
CN201710971492.2A
Other languages
Chinese (zh)
Other versions
CN107798662B (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 CN201710971492.2A priority Critical patent/CN107798662B/en
Publication of CN107798662A publication Critical patent/CN107798662A/en
Application granted granted Critical
Publication of CN107798662B publication Critical patent/CN107798662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Telephone Function (AREA)

Abstract

The present invention, which provides a kind of image processing method and mobile terminal, wherein method, to be included:Detect the source region in original figure layer;The Fuzzy Processing of preset shape is carried out to the source region, obtains light source figure layer;The light source figure layer and the original figure layer are handled, obtain output image.Image processing method and mobile terminal provided by the invention, by carrying out the Fuzzy Processing of preset shape to the source region in original figure layer, afocal filtering effects can be simulated, improve the image processing effect of mobile terminal.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of image processing method and mobile terminal.
Background technology
With the development of the communication technology, the function of mobile terminal is stronger and stronger, and the camera function of mobile terminal is user Daily life offers convenience.With the development of IMAQ and treatment technology, requirement of the user to shooting image is also higher.
In order to realize more preferable appreciation effect, it is necessary to which the light source in controlling the picture of shooting is shown as the special forms such as heart Shape, as cause picture that the afocal virtualization of special shape is presented.Physical shots afocal blurs, when referring to shoot objective point imaging, into As light beam does not converge to a bit, but a fuzzy circle is presented, be blur circle so that shooting image display blurs effect.
The shoot function of long-focus filming apparatus is more powerful, can realize the virtualization effect of physical shots.It is special in order to reach The afocal virtualization effect of different shape, user needs to rely on the longer filming apparatus of focal length, and adds special shape needed for correspondence Make filter by oneself, coordinate long-focus to shoot virtualization effect.The focal length of the camera arrangement of mobile terminal is shorter, can not to shoot Image present special shape afocal virtualization effect, cause the image processing effect of mobile terminal poor.
It can be seen that there is the poor technical problem of image processing effect in existing mobile terminal.
The content of the invention
The embodiment of the present invention provides a kind of image processing method and mobile terminal, to solve at the image of existing mobile terminal Manage the poor technical problem of effect.
In order to solve the above technical problems, what the present invention was realized in:A kind of image processing method, including:Detect original Source region in figure layer, the Fuzzy Processing of preset shape is carried out to the source region, obtains light source figure layer, will be described original Figure layer and the light source figure layer carry out Fuzzy Processing, obtain output image.
In a first aspect, the embodiments of the invention provide a kind of image processing method, including:
Detect the source region in original figure layer;
The Fuzzy Processing of preset shape is carried out to the source region, obtains light source figure layer;
The original figure layer and the light source figure layer are handled, obtain output image.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
Source region detection module, for detecting the source region in original figure layer;
First Fuzzy Processing module, for carrying out the Fuzzy Processing of preset shape to the source region, obtain light source figure Layer;
Output image acquisition module, for handling the original figure layer and the light source figure layer, obtain output figure Picture.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in described On memory and the computer program that can run on the processor, the computer program is by real during the computing device The step of existing above-mentioned image processing method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable recording medium, the computer-readable storage Computer program is stored with medium, the computer program realizes the step of above-mentioned image processing method when being executed by processor Suddenly.
The embodiment of the present invention can be simulated by the Fuzzy Processing to the source region progress preset shape in original figure layer Discharge of the coke outer filtering effects, improves the image processing effect of mobile terminal.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart for the image processing method that one embodiment of the invention provides;
Fig. 2 is the flow chart for the image processing method that another embodiment of the present invention provides;
Fig. 3 is the structural representation for the mobile terminal that one embodiment of the invention provides;
Fig. 4 is one of structural representation of mobile terminal that one embodiment of the invention provides;
Fig. 5 is the two of the structural representation for the mobile terminal that one embodiment of the invention provides;
Fig. 6 is the structural representation for the mobile terminal that another embodiment of the present invention provides.
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 describes, it is clear that described embodiment is part of the embodiment of the present 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.
Referring to Fig. 1, Fig. 1 is the flow chart for the image processing method that one embodiment of the invention provides, as shown in figure 1, including Following steps:
Source region in step 101, the original figure layer of detection.
After acquisition for mobile terminal input picture, the original figure layer in the input picture is handled.Detect the original Source region in beginning figure layer, to detect the high bright light source in the original figure layer.Can be according to every in the original figure layer The brightness value of individual pixel, the pixel that brightness value in the original figure layer is more than predetermined threshold value is extracted, obtains the original graph The source region of layer.Multiple light sources may be included in the input picture, mobile terminal can also be generated comprising whole light sources area The figure layer in domain, directly the whole light sources region included in the figure layer can be handled.
Step 102, the Fuzzy Processing that preset shape is carried out to the source region, obtain light source figure layer.
The light source figure layer in the original figure layer is obtained according to above-mentioned steps, preset shape is carried out to the light source figure layer of detection Fuzzy Processing, light source figure layer is obtained, so that preset shape is presented in source region in the light source figure layer.
In one embodiment, the Fuzzy Processing of preset shape is carried out to the source region, can be to the light source Region carries out the Gauss kernel mapping of preset shape, and preset shape is presented to the source region to realize.
The Gauss kernel mapping, refers in Gaussian Blur, is changed by changing the Gaussian kernel of Fuzzy Processing fuzzy Shape.Gaussian Blur (Gaussian Blur, be also Gaussian smoothing), it is in Adobe Photoshop, cross-platform image procossing Program (GNU Image Manipulation Program, referred to as:GIMP it is wide) and in the image processing program such as Paint.NET The general treatment effect used, for reducing picture noise and reducing level of detail.The principle of Gaussian Blur is, bent according to Gauss Line adjusts pixel colour, selectively blurred picture, the pixel colour around certain point can be got up by Gaussian curve statistics, The colour of this curve is obtained using mathematically average weighted computational methods, can finally leave the profile of image subject.
Gaussian kernel has a variety of, can be circular Gaussian core, square Gaussian kernel or rhombus Gaussian kernel etc..Mobile terminal is entering Row Gaussian kernel select when, according to user want high bright light source presentation blurred shapes come select matching Gaussian kernel.A kind of real The step of applying in mode, the Fuzzy Processing of preset shape is carried out to the light source figure layer, obtains light source figure layer can include:
The Gaussian kernel array matched with the preset shape is selected, the light source figure layer is entered using the Gaussian kernel array Row process of convolution, obtain the light source figure layer of the preset shape.
Determine that user wants the preset shape that the high bright light source is presented, from the shape prestored and Gaussian kernel array In corresponding relation, the Gaussian kernel array matched with the preset shape is searched.Display position can be included in the Gaussian kernel array Point and blank site, the weight in blank site is zero, and the weight for showing site is non-zero values, pixel corresponding to blank site It need not show, show that pixel corresponding to site needs to show.Show that the data weighting in site can be all identical, so that aobvious Show that identical display effect is presented in the pixel in region.
On the basis of above-described embodiment, it is contemplated that light source is from center to edge, it will usually fade effect is presented, therefore also The blur effect of the method optimizing light source for the data weighting for changing Gauss array can be passed through.The Gaussian kernel array can be controlled Center data weighting it is larger, the data weighting from center to edge diminishes, and can so realize light source center position Fog-level it is maximum, the fog-level from center to edge is gradually reduced, so that the blur effect of light source is more true to nature, reached More preferable display effect.For example, the preset shape is heart, then the Gaussian kernel array that can set matching is:
Other can control the scheme of blurred shapes to may be applicable to the present embodiment by changing the Gaussian kernel of Gaussian Blur, Do not limit herein.
Step 103, the original figure layer and the light source figure layer are handled, obtain output image.
Detect the source region of original figure layer according to above-mentioned steps and carry out the Fuzzy Processing of preset shape, obtain light source After figure layer, then the original figure layer and the light source figure layer are handled, you can obtain output image.Processing procedure can be The original figure layer and the light source figure layer are overlapped, you can obtain output image.
On the basis of above-described embodiment, in order that the image for obtaining the source region in light source figure layer can be prior to described The light source image that original figure layer Central Plains originally includes is shown, reduces the light source image in original figure layer and Fuzzy Processing in light source figure layer Influence of the overlapping display of image of source region afterwards to the display effect of output image, can cover the light source figure layer In original figure layer so that the display priority of the light source image of the preset shape in the light source figure layer after Fuzzy Processing, be higher than The light source image of correspondence position in original figure layer so that the light for the preset shape that user can be clearly watched after Fuzzy Processing Source images.In other embodiments, in order to further optimize display effect, the light source image in original figure layer can also be entered Row processing, weaken the display effect of the light source image in original figure layer or control the light source image in original figure layer not show, And then that realizes the light source image of the preset shape in the light source figure layer after Fuzzy Processing highlights effect.Other can optimize The scheme of the display effect of output image may be applicable to the present embodiment, not limit herein.
In the embodiment of the present invention, above-mentioned mobile terminal can with any including the mobile terminal with camera, such as:Mobile phone, Tablet personal computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) Or wearable device (Wearable Device) etc..
The image processing method that the embodiments of the present invention provide, detects the source region in original figure layer, to the light Source images carry out the Fuzzy Processing of preset shape, to obtain light source figure layer.To the light source figure layer and the original figure layer process It can obtain output image.Mobile terminal detects the source region in original figure layer and carries out the Fuzzy Processing of preset shape, i.e., The afocal virtualization picture of special shape can be obtained, improves the image processing effect of mobile terminal.
Referring to Fig. 2, Fig. 2 is the flow chart for the image processing method that another embodiment of the present invention provides.The embodiment of the present invention The difference for the image processing method that the image processing method of offer provides with above-described embodiment is:Increase is in original figure layer Background image carries out the operation of Fuzzy Processing.As shown in Fig. 2 comprise the following steps:
Source region in step 201, the original figure layer of detection.
After acquisition for mobile terminal input picture, the source region in the original figure layer of the input picture is detected, detects institute State the high bright light source in original figure layer.The specific implementation process for detecting the source region in original figure layer can be found in above-mentioned implementation Example, is repeated no more.
Step 202, the Fuzzy Processing that preset shape is carried out to the source region, obtain light source figure layer.
The source region in the original figure layer is detected according to above-mentioned steps, default shape is carried out to the source region detected The Fuzzy Processing of shape, light source figure layer is obtained, so that the light source of the preset shape is presented in the light source image in the light source figure layer Image.The process that the Fuzzy Processing of preset shape is carried out to source region can be found in above-described embodiment, repeat no more.
The subject image and background image of step 203, the identification original figure layer.
Original figure layer can include subject image and background image, and subject image can be that prominent show is needed in original graph layer The part shown, background image can be the part that need not highlight in original graph layer, the light source image in original figure layer Focus mostly in the background area of original figure layer.In image processing process, Fuzzy Processing is carried out to the light source image in original figure layer, In order that the blur effect matching of the output image after must handling, the background image of the original figure layer of preferred pair also carry out Fuzzy Processing When, while keep the subject image in original figure layer clearly to show.
The subject image and background image in the original figure layer are identified, can be known by way of depth extraction Not.Picture depth, refer to the digit used in each pixel in storage image, can be used for the color-resolution for measuring image.It is deep Extracting mode is spent to identify the subject image of original figure layer and background image, can be divided into and singly be taken the photograph depth extraction and double take the photograph depth and carry Take.Depth extraction is singly taken the photograph, refers to train by machine, inputs the property parameters of agent object, is partitioned into the original figure layer Subject image and background image.It is double to take the photograph depth extraction, refer to the parallax that same image is shot according to dual camera, extract original Subject image and background image in figure layer.Other can recognize that subject image and the mode of background image in original figure layer Suitable for the present embodiment, it is not construed as limiting.
Step 204, Fuzzy Processing is carried out to the background image, obtained after including the subject image and Fuzzy Processing The fuzzy figure layer of background image.
After subject image and the background image in the original figure layer are identified according to above-mentioned steps, the background image is entered Row Fuzzy Processing, obtain including the fuzzy figure layer of the background image after the subject image and Fuzzy Processing.In a kind of embodiment party In formula, the fuzzy manners such as circular filter or Gaussian Blur can be used, mould is carried out to the background image in the original figure layer Paste processing.Circular filter is fuzzy to be referred to circular box blur and image doing convolution, to generate more accurate afocal imaging effect Fruit.Other can realize that the mode that the background image of original figure layer is carried out to Fuzzy Processing may be applicable to the present embodiment, not limit It is fixed.
In the present embodiment, the step of the detection of source region and Fuzzy Processing, and the original figure layer process is obtained The step of figure layer must be obscured, its sequencing implemented can be exchanged, be not construed as limiting.
Step 205, by the light source figure layer and the fuzzy map overlay, obtain output image.
The light source figure layer after the Fuzzy Processing of preset shape is obtained according to above-mentioned steps, and including clearly subject image After the fuzzy figure layer of the background image after Fuzzy Processing, the light source figure layer and the fuzzy map overlay are exported Image.So, the subject image of output image is clearly shown, the fuzzy display of background image, light source is in the fuzzy effect of preset shape Fruit so that the display effect of output image is more preferable.
On the basis of above-described embodiment, it is contemplated that the subject image of original figure layer may can also have light source image, if The Fuzzy Processing of preset shape is carried out to the source region in whole original figure layer, keep original figure layer subject image it is clear Degree, Fuzzy Processing only is carried out to the background image of original figure layer, Fuzzy Processing occurs in the subject image that can clearly to show Light source image, influence the definition of the subject image of output image.Therefore, when carrying out the source region detection of original figure layer, Only the source region in the background image in original figure layer can be detected and Fuzzy Processing, without in original figure layer Source region in subject image carries out the Fuzzy Processing of preset shape, with the definition of retainer body image.
The image processing method of the embodiment of the present invention, mobile terminal carry out preset shape to the source region in original figure layer Fuzzy Processing, match the background image after Fuzzy Processing, you can obtain the afocal virtualization picture of special shape, improve it is mobile eventually The image processing effect at end.The specific implementation process of image processing method provided in an embodiment of the present invention, reference can be made to above-mentioned implementation The specific implementation process for the image processing method that example provides, this is no longer going to repeat them.
Referring to Fig. 3, Fig. 3 is the structural representation for the mobile terminal that one embodiment of the invention provides, as shown in figure 3, mobile Terminal 300 includes:Source region detection module 301, the first Fuzzy Processing module 302 and output image acquisition module 303, it is described Source region detection module 301 is connected with the first Fuzzy Processing module 302, the first Fuzzy Processing module 302 and institute Output image acquisition module 303 is stated to connect.
The source region detection module 301, for detecting the source region in original figure layer;
The first Fuzzy Processing module 302, for carrying out the Fuzzy Processing of preset shape to the source region, obtain Light source figure layer;
The output image acquisition module 303, for handling the original figure layer and the light source figure layer, obtain Output image.
Referring to Fig. 4, Fig. 4 is one of structural representation of mobile terminal that one embodiment of the invention provides.In above-mentioned implementation On the basis of example, as shown in figure 4, the mobile terminal 300 can also include:
Identification module 304, for identifying the subject image and background image of the original figure layer;
Second Fuzzy Processing module 305, for carrying out Fuzzy Processing to the background image, obtain including the main body figure The fuzzy figure layer of background image after picture and Fuzzy Processing;
The output image acquisition module 303 is used for:
By the light source figure layer and the fuzzy map overlay, output image is obtained.
On the basis of above-described embodiment, the source region detection module 301 can be used for:
Screen the light source image in the background image in the original figure layer.
On the basis of above-described embodiment, the output image acquisition module 303 can be used for:
The light source figure layer is covered in the original figure layer, obtains output image.
Referring to Fig. 5, Fig. 5 is the two of the structural representation for the mobile terminal that one embodiment of the invention provides.In above-mentioned implementation On the basis of example, as shown in figure 5, the first Fuzzy Processing module 302 can include:
Array selects submodule 3021, for selecting the Gaussian kernel array of the preset shape matching;
Process of convolution submodule 3022, for carrying out process of convolution to the source region using the Gaussian kernel array, Obtain the light source figure layer of the preset shape.
Mobile terminal 300 can realize each process that mobile terminal is realized in Fig. 1 and Fig. 2 embodiment of the method, to keep away Exempt to repeat, repeat no more here.
The mobile terminal of the embodiment of the present invention, by detecting the source region in original figure layer, to the source region The Fuzzy Processing of preset shape is carried out, to obtain light source figure layer.The subject image and background image of original figure layer are identified, to described Background image does Fuzzy Processing, obtains comprising the fuzzy figure layer after clearly subject image and Fuzzy Processing.To the light source figure Layer is handled with the fuzzy figure layer, you can obtains output image.Mobile terminal is carried out to the source region in original figure layer The Fuzzy Processing of preset shape, match the background image after Fuzzy Processing, you can obtain the afocal virtualization picture of special shape, carry The image processing effect of high mobile terminal.The specific implementation process of mobile terminal provided in an embodiment of the present invention, reference can be made to above-mentioned The specific implementation process for the image processing method that embodiment provides, this is no longer going to repeat them.
Referring to Fig. 6, Fig. 6 is the structural representation for the mobile terminal that another embodiment of the present invention provides.As shown in fig. 6, it is A kind of mobile terminal of each embodiment of the present invention is realized, the mobile terminal 600 includes but is not limited to:Radio frequency unit 601, network Module 602, audio output unit 603, input block 604, sensor 605, display unit 606, user input unit 607, connect The parts such as mouth unit 608, memory 609, processor 610 and power supply 611.It will be understood by those skilled in the art that in Fig. 6 The mobile terminal structure shown does not form the restriction to mobile terminal, and mobile terminal can include more more or less than illustrating Part, either combine some parts or different parts arrangement.In embodiments of the present invention, mobile terminal includes but unlimited In mobile phone, tablet personal computer, notebook computer, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610, for detecting the source region in original figure layer;
The Fuzzy Processing of preset shape is carried out to the source region, obtains light source figure layer;
The light source figure layer and the original figure layer are handled, obtain output image.
Optionally, the processor 610 is additionally operable to:Identify the subject image and background image of the original figure layer;
Fuzzy Processing is carried out to the background image, obtains including the background image after the subject image and Fuzzy Processing Fuzzy figure layer;
By the light source figure layer and the fuzzy map overlay, output image is obtained.
Optionally, the processor 610 is additionally operable to:Detect the light source region in the background image in the original figure layer Domain.
Optionally, the processor 610 is additionally operable to:The light source figure layer is covered in the original figure layer, obtained defeated Go out image.
Optionally, the processor 610 is additionally operable to:Select the Gaussian kernel array matched with the preset shape;
Process of convolution is carried out to the source region using the Gaussian kernel array, obtains the light source figure of the preset shape Layer.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The mobile terminal of the embodiment of the present invention, the mobile terminal 300 of the embodiment of the present invention, by detecting in original figure layer Source region, to the source region carry out preset shape Fuzzy Processing, to obtain light source figure layer.Identify original figure layer Subject image and background image, Fuzzy Processing is done to the background image, obtained comprising clearly subject image and Fuzzy Processing Fuzzy figure layer afterwards.To the light source figure layer and the fuzzy map overlay, you can obtain output image.Mobile terminal is to original Source region in figure layer carries out the Fuzzy Processing of preset shape, matches the background image after Fuzzy Processing, you can it is special to obtain The afocal virtualization picture of shape, improve the image processing effect of mobile terminal.The tool of mobile terminal provided in an embodiment of the present invention Body implementation process, reference can be made to the specific implementation process for the image processing method that above-described embodiment provides, this is no longer going to repeat them.
It should be understood that in the embodiment of the present invention, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 610;In addition, will be up Data are sent to base station.Generally, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 602 and accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 603 can be receiving by radio frequency unit 601 or mixed-media network modules mixed-media 602 or in memory 609 It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 603 can also be provided and moved The audio output for the specific function correlation that dynamic terminal 600 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input block 604 is used to receive audio or video signal.Input block 604 can include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 606.Picture frame after the processing of graphics processor 6041 can be deposited Storage is transmitted in memory 609 (or other storage mediums) or via radio frequency unit 601 or mixed-media network modules mixed-media 602.Mike Wind 6042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 601 by being converted in the case of telephone calling model.
Mobile terminal 600 also includes at least one sensor 605, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 6061, and proximity transducer can close when mobile terminal 600 is moved in one's ear Display panel 6061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 606 is used for the information for showing the information inputted by user or being supplied to user.Display unit 606 can wrap Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 6061.
User input unit 607 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 607 include contact panel 6071 and Other input equipments 6072.Contact panel 6071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 6071 or in contact panel 6071 Neighbouring operation).Contact panel 6071 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 610, receiving area Manage the order that device 610 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 6071.Except contact panel 6071, user input unit 607 can also include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 6071 can be covered on display panel 6061, when contact panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touch The type for touching event provides corresponding visual output on display panel 6061.Although in figure 6, contact panel 6071 and display Panel 6061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments In, can be integrated by contact panel 6071 and display panel 6061 and realize input and the output function of mobile terminal, it is specific this Place does not limit.
Interface unit 608 is the interface that external device (ED) is connected with mobile terminal 600.For example, external device (ED) can include Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 608 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 600 can be used in the He of mobile terminal 600 Data are transmitted between external device (ED).
Memory 609 can be used for storage software program and various data.Memory 609 can mainly include 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 Voice data, phone directory etc.) etc..In addition, memory 609 can 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 610 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 609, and call and be stored in storage Data in device 609, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) to all parts power supply, it is preferred that power supply 611 Can be logically contiguous by power-supply management system and processor 610, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 600 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, memory 609, is stored in On memory 609 and the computer program that can be run on the processor 610, the computer program are performed by processor 610 Each process of the above-mentioned image processing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording 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, repeat no more here.Wherein, described computer-readable recording 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, term " comprising ", "comprising" 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 not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key 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 such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, belong within the protection of the present invention.

Claims (12)

  1. A kind of 1. image processing method, applied to mobile terminal, it is characterised in that including:
    Detect the source region in original figure layer;
    The Fuzzy Processing of preset shape is carried out to the source region, obtains light source figure layer;
    The original figure layer and the light source figure layer are handled, obtain output image.
  2. 2. according to the method for claim 1, it is characterised in that described that the original figure layer and the light source figure layer are carried out Processing, before the step of obtaining output image, methods described also includes:
    Identify the subject image and background image of the original figure layer;
    Fuzzy Processing is carried out to the background image, obtains including the mould of the background image after the subject image and Fuzzy Processing Paste figure layer;
    Described the step of handling to the original figure layer and the light source figure layer, obtain output image, includes:
    By the light source figure layer and the fuzzy map overlay, output image is obtained.
  3. 3. according to the method for claim 2, it is characterised in that wrap the step of source region in the original figure layer of the detection Include:
    Detect the source region in the background image in the original figure layer.
  4. 4. according to the method for claim 1, it is characterised in that described that the original figure layer and the light source figure layer are carried out The step of handling, obtaining output image includes:
    The light source figure layer is covered in the original figure layer, obtains output image.
  5. 5. the method according to any one of Claims 1-4, it is characterised in that described to be carried out to the source region The Fuzzy Processing of preset shape, the step of obtaining light source figure layer, include:
    Select the Gaussian kernel array matched with the preset shape;
    Process of convolution is carried out to the source region using the Gaussian kernel array, obtains the light source figure layer of the preset shape.
  6. A kind of 6. mobile terminal, it is characterised in that including:
    Source region detection module, for detecting the source region in original figure layer;
    First Fuzzy Processing module, for carrying out the Fuzzy Processing of preset shape to the source region, obtain light source figure layer;
    Output image acquisition module, for handling the original figure layer and the light source figure layer, obtain output image.
  7. 7. mobile terminal according to claim 6, it is characterised in that the mobile terminal also includes:
    Identification module, for identifying the subject image and background image of the original figure layer;
    Second Fuzzy Processing module, for carrying out Fuzzy Processing to the background image, obtain including the subject image and mould The fuzzy figure layer of background image after paste processing;
    The output image acquisition module is used for:
    By the light source figure layer and the fuzzy map overlay, output image is obtained.
  8. 8. mobile terminal according to claim 7, it is characterised in that the source region detection module is used for:
    Detect the source region in the background image in the original figure layer.
  9. 9. mobile terminal according to claim 6, it is characterised in that the output image acquisition module is used for:
    The light source figure layer is covered in the original figure layer, obtains output image.
  10. 10. the mobile terminal according to any one of claim 6 to 9, it is characterised in that the first Fuzzy Processing mould Block includes:
    Array selects submodule, for the Gaussian kernel array for selecting to match with the preset shape;
    Process of convolution submodule, for carrying out process of convolution to the source region using the Gaussian kernel array, obtain described The light source figure layer of preset shape.
  11. 11. a kind of mobile terminal, it is in its feature, including processor, memory and is stored on the memory and can be The computer program run on the processor, the computer program are realized such as claim 1 during the computing device The step of to image processing method any one of 5.
  12. 12. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the image processing method as any one of claim 1 to 5 is realized when the computer program is executed by processor The step of.
CN201710971492.2A 2017-10-18 2017-10-18 Image processing method and mobile terminal Active CN107798662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710971492.2A CN107798662B (en) 2017-10-18 2017-10-18 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710971492.2A CN107798662B (en) 2017-10-18 2017-10-18 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107798662A true CN107798662A (en) 2018-03-13
CN107798662B CN107798662B (en) 2020-04-07

Family

ID=61533294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710971492.2A Active CN107798662B (en) 2017-10-18 2017-10-18 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107798662B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108284925A (en) * 2018-01-09 2018-07-17 燕山大学 The recognition detection method of waterline
CN110298813A (en) * 2019-06-28 2019-10-01 北京金山安全软件有限公司 Method and device for processing picture and electronic equipment
WO2023245362A1 (en) * 2022-06-20 2023-12-28 北京小米移动软件有限公司 Image processing method and apparatus, electronic device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318542A (en) * 2014-11-20 2015-01-28 上海华力创通半导体有限公司 Image enhancement processing algorithm
CN104574452A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Generating method and device for window background
CN105045476A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for acquiring spotlight graph
CN105719327A (en) * 2016-02-29 2016-06-29 北京中邮云天科技有限公司 Art stylization image processing method
CN105976332A (en) * 2016-05-03 2016-09-28 北京大学深圳研究生院 Image de-blurring method based on bright stripe information in image
CN106056661A (en) * 2016-05-31 2016-10-26 钱进 Direct3D 11-based 3D graphics rendering engine
CN106204513A (en) * 2016-08-15 2016-12-07 厦门美图之家科技有限公司 The methods, devices and systems of image procossing
CN106327458A (en) * 2016-08-31 2017-01-11 上海交通大学 Method for layered rendering based on image
CN106504220A (en) * 2016-08-19 2017-03-15 华为机器有限公司 A kind of image processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574452A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Generating method and device for window background
CN104318542A (en) * 2014-11-20 2015-01-28 上海华力创通半导体有限公司 Image enhancement processing algorithm
CN105045476A (en) * 2015-06-12 2015-11-11 广东小天才科技有限公司 Method and device for acquiring spotlight graph
CN105719327A (en) * 2016-02-29 2016-06-29 北京中邮云天科技有限公司 Art stylization image processing method
CN105976332A (en) * 2016-05-03 2016-09-28 北京大学深圳研究生院 Image de-blurring method based on bright stripe information in image
CN106056661A (en) * 2016-05-31 2016-10-26 钱进 Direct3D 11-based 3D graphics rendering engine
CN106204513A (en) * 2016-08-15 2016-12-07 厦门美图之家科技有限公司 The methods, devices and systems of image procossing
CN106504220A (en) * 2016-08-19 2017-03-15 华为机器有限公司 A kind of image processing method and device
CN106327458A (en) * 2016-08-31 2017-01-11 上海交通大学 Method for layered rendering based on image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108284925A (en) * 2018-01-09 2018-07-17 燕山大学 The recognition detection method of waterline
CN110298813A (en) * 2019-06-28 2019-10-01 北京金山安全软件有限公司 Method and device for processing picture and electronic equipment
WO2023245362A1 (en) * 2022-06-20 2023-12-28 北京小米移动软件有限公司 Image processing method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN107798662B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN107833178A (en) A kind of image processing method, device and mobile terminal
CN107592466A (en) A kind of photographic method and mobile terminal
CN108491775A (en) A kind of image correcting method and mobile terminal
CN107820011A (en) Photographic method and camera arrangement
CN107948499A (en) A kind of image capturing method and mobile terminal
CN107833177A (en) A kind of image processing method and mobile terminal
CN107817939A (en) A kind of image processing method and mobile terminal
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107734260A (en) A kind of image processing method and mobile terminal
CN107317963A (en) A kind of double-camera mobile terminal control method, mobile terminal and storage medium
CN108038825A (en) A kind of image processing method and mobile terminal
CN107808084A (en) A kind of touch operation method and mobile terminal
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN107704176A (en) A kind of picture-adjusting method and terminal
CN107635110A (en) A kind of video interception method and terminal
CN107566749A (en) Image pickup method and mobile terminal
CN107749046A (en) A kind of image processing method and mobile terminal
CN107730460A (en) A kind of image processing method and mobile terminal
CN107483836A (en) A kind of image pickup method and mobile terminal
CN107592467A (en) A kind of image pickup method and mobile terminal
CN107895352A (en) A kind of image processing method and mobile terminal
CN107958161A (en) A kind of multitask display methods and mobile terminal
CN108182726A (en) Three-dimensional rebuilding method, cloud server and computer readable storage medium
CN107831891A (en) A kind of brightness adjusting method and mobile terminal
CN108320263A (en) A kind of method, device and mobile terminal of image procossing

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