CN108320263A - A kind of method, device and mobile terminal of image procossing - Google Patents
A kind of method, device and mobile terminal of image procossing Download PDFInfo
- Publication number
- CN108320263A CN108320263A CN201711480312.7A CN201711480312A CN108320263A CN 108320263 A CN108320263 A CN 108320263A CN 201711480312 A CN201711480312 A CN 201711480312A CN 108320263 A CN108320263 A CN 108320263A
- Authority
- CN
- China
- Prior art keywords
- image
- processing
- pixel value
- sampling
- face
- 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
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 144
- 238000005070 sampling Methods 0.000 claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 14
- 230000006854 communication Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G06T3/04—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4023—Decimation- or insertion-based scaling, e.g. pixel or line decimation
-
- 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/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
Abstract
An embodiment of the present invention provides a kind of method, device and mobile terminal of image procossing, the method includes:Obtain the first image of camera acquisition;Down-sampling processing is carried out to described first image, generates the second image;Default processing is carried out to second image, generates third image, the default processing includes U.S. face processing and/or virtualization processing;Interpolation processing is carried out to the third image, generate target image, difference between the pixel value of the target image and the pixel value of described first image solves the problems, such as directly to carry out U.S. face to the higher pixel value image that camera acquires in the prior art or blurs the time-consuming longer of processing less than predetermined threshold value.
Description
Technical field
The present embodiments relate to the method, apparatus and shifting of technical field of image processing more particularly to a kind of image procossing
Dynamic terminal.
Background technology
Currently, the camera function on smart mobile phone is very powerful, the processing such as U.S. face can not only be carried out to photo, it can be with
Some are presented originally can only be in the obtainable effect of taking pictures of post-processing.For example, photo virtualization etc..
But in order to obtain personalized photo, when the U.S. face of progress is taken pictures or is blurred and takes pictures, the processor of smart mobile phone
It needs to carry out a large amount of operation to image, not only power consumption is very big, and user waits for the time of image procossing also especially long.Especially
When patting the photo for taking the photograph high pixel value using a variety of special efficacys at the same time, U.S. face is such as opened simultaneously and virtualization function shoots 2000W pictures
When the photo of element, processor first must carry out U.S. face processing to image, then carry out virtualization processing again to the image after U.S. face, by
Higher in the pixel value of shooting, U.S. face and virtualization processing time are also just longer, and user has to by waiting for for a long time
It can complete the shooting of a photo.
Invention content
An embodiment of the present invention provides a kind of method, device and mobile terminal of image procossing, to solve to higher picture
The photo of plain value carries out taking longer problem when U.S. face and virtualization processing.
In order to solve the above-mentioned technical problem, it in a first aspect, an embodiment of the present invention provides a kind of method of image procossing, answers
For mobile terminal, including:
Obtain the first image of camera acquisition;
Down-sampling processing is carried out to described first image, generates the second image;
Default processing is carried out to second image, generates third image, the default processing include U.S. face handle and/or
Virtualization is handled;
Interpolation processing is carried out to the third image, generates target image, the pixel value of the target image and described the
Difference between the pixel value of one image is less than predetermined threshold value.
Second aspect, the embodiment of the present invention additionally provide a kind of device of image procossing, are applied to mobile terminal, including:
Acquisition module, the first image for obtaining camera acquisition;
Down sample module generates the second image for carrying out down-sampling processing to described first image;
Default processing module generates third image, the default processing for carrying out default processing to second image
Including the processing of U.S. face and/or virtualization processing;
Interpolating module generates target image, the picture of the target image for carrying out interpolation processing to the third image
Difference between element value and the pixel value of described first image is less than predetermined threshold value.
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 method for above-mentioned image procossing.
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, the computer program realizes the method for above-mentioned image procossing when being executed by processor
Step.
In this way, in embodiments of the present invention, after the first image for obtaining camera acquisition, not directly to the first image
It helps the processing such as face, virtualization, but is the second image compared with low-pixel value by the first image procossing by down-sampling, then to the
Two images help the processing such as face, virtualization, and then again by interpolation processing, by the target figure that third image restoring is original pixel value
Efficiency as improving U.S. face, virtualization processing, reduces processing time, reduces power consumption when taking pictures, solve the prior art
In directly take longer problem to what the higher pixel value image of camera acquisition carried out U.S. face or virtualization processing.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the method for image procossing of one embodiment of the invention;
Fig. 2 is the step flow chart of the method for another image procossing of one embodiment of the invention;
Fig. 3 is a kind of structure diagram of the device of image procossing of one embodiment of the invention;
Fig. 4 is a kind of hardware architecture diagram of mobile terminal of one embodiment of the invention.
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.
Referring to Fig.1, the step flow chart for showing a kind of method of image procossing of one embodiment of the invention, specifically may be used
To include the following steps:
Step 101, the first image of camera acquisition is obtained;
It should be noted that this method can be applied in mobile terminal.For example, mobile phone, tablet computer or other tools
There is the electronic equipment of camera function.The present embodiment is not construed as limiting the concrete type of mobile terminal.
In embodiments of the present invention, the first image can be the image acquired by the camera of mobile terminal, which can
With with higher pixel value.In general, there is higher picture quality using the image that the shooting of higher pixel value obtains.
It should be noted that the pixel value of the first image can shoot the picture obtained with the camera of mobile terminal
What plain value matched.If for example, the camera of mobile terminal can shoot obtain 2000W pixels image, the first image
Pixel value highest can be 2000W pixels.
Alternatively, the pixel value of the first image can be the pixel value being voluntarily arranged by user.In general, what user was voluntarily arranged
The camera that pixel value should be less than mobile terminal can shoot the max pixel value obtained.If for example, the camera shooting of mobile terminal
Head can shoot the image for obtaining 2000W pixels, then user can voluntarily be arranged and not surpassed when shooting according to actual needs
First image of the 2000W pixels crossed.
Step 102, down-sampling processing is carried out to described first image, generates the second image;
Down-sampling (Subsampled) is a kind of processing operation of image, and principle is:For the figure that a width size is M*N
Picture carries out it s times of down-sampling to get to the image in different resolution of (M/s) * (N/s) size.
In embodiments of the present invention, down-sampling processing is carried out to the first image, the second figure compared with low-pixel value can be obtained
Picture.
For example, if the pixel value of the first image is 2000W, handled by down-sampling, it is 500W's that can obtain pixel value
Second image.Certainly, the pixel value size for the second image that down-sampling processing obtains being carried out to the first image can be according to reality
Sample rate determine that the sample rate can according to actual needs determine by those skilled in the art or user when actually taking pictures,
The present embodiment is not construed as limiting this.
Step 103, default processing is carried out to second image, generates third image, the default processing includes U.S. face
Processing and/or virtualization processing;
In embodiments of the present invention, there is lower pixel value compared to the first image due to the second image, right
The power consumption that second image carries out spent by the subsequent processing, is less, and the time is shorter.
For example, face can be helped to handle the second image, alternatively, making virtualization processing to the second image, compared to directly right
It is shorter that first image of higher pixel value makees processing or virtualization processing, the time it takes per sample.It is of course also possible to according to reality
It needs, while helping face and virtualization to handle the second image, the present embodiment is not construed as limiting this.
It should be noted that U.S. face and/or virtualization processing influence less the pixel value of image.That is, to
The third image that two images obtain after helping face and/or virtualization to handle, pixel value variation are little.
For example, the second image is the image of 500W pixels, then the pixel value of U.S. face and/or virtualization treated third image
It also should be in 500W or so.
Step 104, interpolation processing is carried out to the third image, generates target image, the pixel value of the target image
Difference between the pixel value of described first image is less than predetermined threshold value.
In embodiments of the present invention, due to before carrying out U.S. face and/or virtualization processing to image, being adopted under having been carried out to image
Sample processing, reduces the pixel value of image, therefore, after completing U.S. face and/or virtualization processing, can continue to make third image
Interpolation processing obtains target image.
Interpolation (Interpolating) also referred to as up-samples (Upsampling), exactly utilizes known vicinity points
Gray value (or three color values in RGB image) generates the gray value of unknown pixel point, has to be regenerated by original image
The image of higher resolution.
In embodiments of the present invention, between the pixel value of the target image after interpolation processing and the pixel value of the first image
Difference can be less than predetermined threshold value.Those skilled in the art can determine the specific size of predetermined threshold value according to actual needs, this
Embodiment is not construed as limiting this.
In the concrete realization, in order to obtain the target image almost the same with the pixel value of the first image, then can use up can
Smaller predetermined threshold value can be set.
For example, if the first image is 2000W, if wishing the picture of the target image obtained after U.S. face and/or virtualization processing
A smaller predetermined threshold value can be then arranged close to 2000W in element value, to the third image progress compared with low-pixel value
After interpolation processing, the target image of a higher pixel value can be obtained.
In embodiments of the present invention, after the first image for obtaining camera acquisition, directly the first image is not helped
The processing such as face, virtualization, but be the second image compared with low-pixel value by the first image procossing by down-sampling, then to the second figure
As helping the processing such as face, virtualization, and then the target image that third image restoring is original pixel value is carried by interpolation processing again
High U.S. face, the efficiency of virtualization processing, reduce processing time, reduce power consumption when taking pictures.
With reference to Fig. 2, the step flow chart of the method for another image procossing of one embodiment of the invention is shown, specifically
It may include steps of:
Step 201, receiving at least two the first images, described first image that image signal processing unit ISP is handled is
It is acquired by camera and handles the yuv format image obtained through the ISP;
In embodiments of the present invention, the camera shooting of mobile terminal is after acquiring image, can through two-way sensor output data,
And after image signal processing unit ISP processing, obtain two yuv format images.
It should be noted that the pixel value of two yuv format images can be shot with the camera of mobile terminal
The pixel value of acquisition is identical.
For example, the camera of mobile terminal is 2000W cameras, then the pixel of the two two yuv format images obtained
Value can also be 2000W.
Step 202, determine that the sample rate of down-sampling, the sample rate of the down-sampling match target pixel value;
In embodiments of the present invention, target pixel value can refer to carrying out down-sampling to the first image of two yuv formats
After processing, the pixel value of two the second images of acquisition.
For example, if the pixel value of the first image of two yuv formats is 2000W, what user determined carries out the first image
The pixel value of the image obtained after down-sampling is 500W, then target pixel value is 500W.
In embodiments of the present invention, the sample rate of down-sampling can match with target pixel value.That is, by a certain
The first image of sample rate pair is handled, and can obtain the second image with target pixel value.
Step 203, down-sampling processing is carried out to described first image according to the sample rate of the down-sampling, generating has institute
State the second image of target pixel value;
In embodiments of the present invention, after determining the sample rate of down-sampling, according to the sample rate can adopt
Sample reduces the pixel value of the first image to obtain the second image.
Step 204, default processing is carried out to second image, generates third image, the default processing includes U.S. face
Processing and/or virtualization processing;
In embodiments of the present invention, obtain compared with the second image of low-pixel value after, the second image can be helped face and/
Or virtualization processing.
In the concrete realization, the human face region at least two the second images can be identified first, then determine face area
The U.S. face parameter in domain, and U.S.'s face parameter is used, U.S. face processing is carried out to human face region, generates third image.
Alternatively, depth of field size information can be calculated according at least two the second images, it is right then according to depth of field size information
Second image carries out virtualization processing, generates third image.
In a kind of example of the present invention, can also U.S. face processing be carried out to two the second images first, then to U.S. face
Treated, and image makees virtualization processing, to be completed at the same time U.S. face and virtualization treated image as third image.
It should be noted that U.S. face and virtualization processing have no effect on the pixel value of original image.Therefore, the pixel of third image
Difference between value and the pixel value of the second image should be less than predetermined threshold value.
Step 205, interpolation processing is carried out to the third image, generates target image, the pixel value of the target image
Difference between the pixel value of described first image is less than predetermined threshold value.
In embodiments of the present invention, due to before carrying out U.S. face and/or virtualization processing to image, being adopted under having been carried out to image
Sample processing, reduces the pixel value of image, therefore, after completing U.S. face and/or virtualization processing, can continue to make third image
Interpolation processing, by the target image that the third image restoring compared with low-pixel value is higher pixel value.
In embodiments of the present invention, pass through the sample rate of determining down-sampling so that the first image of shooting can be handled
For the second image compared with low-pixel value, the processing such as face, virtualization then are helped to the second image, reduce mobile terminal to image into
The processing time of the processing such as row U.S. face, virtualization;After completing the processing such as U.S. face, virtualization, by making interpolation processing to third image,
So as to by the target image that the lower third image restoring of pixel value is higher pixel value, have matched the shooting of user's script
It is required that.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 3, a kind of structure diagram of the device of image procossing of one embodiment of the invention, described device are shown
300 can specifically include following module:
Acquisition module 310, the first image for obtaining camera acquisition;
Down sample module 320 generates the second image for carrying out down-sampling processing to described first image;
Default processing module 330, for carrying out default processing to second image, generation third image is described default
Processing includes U.S. face processing and/or virtualization processing;
Interpolating module 340 generates target image, the target image for carrying out interpolation processing to the third image
Pixel value and the pixel value of described first image between difference be less than predetermined threshold value.
In embodiments of the present invention, the down sample module 320 can specifically include following submodule:
The sample rate of sample rate determination sub-module, the sample rate for determining down-sampling, the down-sampling matches target picture
Element value;
Down-sampling submodule carries out down-sampling processing for the sample rate according to the down-sampling to described first image,
Generate the second image with the target pixel value.
In embodiments of the present invention, the acquisition module 310 can specifically include following submodule:
Receiving submodule, at least two the first images for receiving image signal processing unit ISP processing, described first
Image is to be acquired by camera and handle the yuv format image obtained through the ISP.
In embodiments of the present invention, second image may include at least two, and the default processing module 330 is specific
It may include following submodule:
Identify submodule, for identification the human face region at least two second images;
Parameter determination submodule, the U.S. face parameter for determining the human face region;
U.S. face submodule, for using the U.S. face parameter, carrying out U.S. face processing to the human face region, generating third figure
Picture.
In embodiments of the present invention, second image may include at least two, and the default processing module 330 may be used also
To include following submodule:
Computational submodule, at least two the second images to calculate depth of field size information according to;
Submodule is blurred, for according to the depth of field size information, virtualization processing to be carried out to second image, generates the
Three images.
Device 300 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to avoid weight
Multiple, which is not described herein again.The embodiment of the present invention is not directly made the first image after the first image for obtaining camera acquisition
The processing such as U.S. face, virtualization, but be the second image compared with low-pixel value by the first image procossing by down-sampling, then to second
Image helps the processing such as face, virtualization, and then again by interpolation processing, by the target image that third image restoring is original pixel value
U.S. face, the efficiency of virtualization processing are improved, reduces processing time, reduces power consumption when taking pictures.
With reference to Fig. 4, a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention, the shifting are shown
Moving terminal 400 includes but not limited to:Radio frequency unit 401, audio output unit 403, input unit 404, passes network module 402
Sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410 and power supply
411 equal components.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted to mobile terminal
It limits, mobile terminal may include either combining certain components or different component cloth than illustrating more or fewer components
It sets.In embodiments of the present invention, mobile terminal includes but not limited to mobile phone, tablet computer, laptop, palm PC, vehicle
Mounted terminal, wearable device and pedometer etc..
Wherein, radio frequency unit 401, for receiving the first image for obtaining camera acquisition;
Processor 410 generates the second image for carrying out down-sampling processing to described first image;To second figure
As carrying out default processing, third image is generated, the default processing includes U.S. face processing and/or virtualization processing;To the third
Image carries out interpolation processing, target image is generated, between the pixel value of the target image and the pixel value of described first image
Difference be less than predetermined threshold value.
In this way, in embodiments of the present invention, after the first image for obtaining camera acquisition, not directly to the first image
It helps the processing such as face, virtualization, but is the second image compared with low-pixel value by the first image procossing by down-sampling, then to the
Two images help the processing such as face, virtualization, and then again by interpolation processing, by the target figure that third image restoring is original pixel value
Efficiency as improving U.S. face, virtualization processing, reduces processing time, reduces power consumption when taking pictures.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 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 410 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 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 402 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 403 can receive radio frequency unit 401 or network module 402 or in memory 409
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor
(Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 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 406.Through graphics processor 4041, treated that picture frame can be deposited
Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike
Wind 4042 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 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, 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 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear
Display panel 4061 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 405 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 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap
Display panel 4061 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 4061.
User input unit 407 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 407 include touch panel 4071 and
Other input equipments 4072.Touch panel 4071, 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 4071 or in touch panel 4071
Neighbouring operation).Touch panel 4071 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 410, receiving area
It manages the order that device 410 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 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments
4072.Specifically, other input equipments 4072 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 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it
On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touch
The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display
Panel 4061 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 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.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 408 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 400 or can be used in 400 He of mobile terminal
Transmission data between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 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 409 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 410 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 409, and calls and is stored in storage
Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 410 may include one or more processing units;Preferably, processor 410 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 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411
Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 400 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 410, and memory 409 is stored in
On memory 409 and the computer program that can be run on the processor 410, the computer program are executed by processor 410
Each process of the embodiment of the method for the above-mentioned image procossings of Shi Shixian, and identical technique effect can be reached, to avoid repeating, this
In repeat 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 the embodiment of the method for above-mentioned image procossing when being executed by processor, and
Identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as
Read-only 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 (12)
1. a kind of method of image procossing is applied to mobile terminal, which is characterized in that including:
Obtain the first image of camera acquisition;
Down-sampling processing is carried out to described first image, generates the second image;
Default processing is carried out to second image, generates third image, the default processing includes U.S. face processing and/or virtualization
Processing;
Interpolation processing is carried out to the third image, generates target image, the pixel value of the target image and first figure
Difference between the pixel value of picture is less than predetermined threshold value.
2. according to the method described in claim 1, it is characterized in that, described carry out down-sampling processing, life to described first image
Include at the step of the second image:
Determine that the sample rate of down-sampling, the sample rate of the down-sampling match target pixel value;
Down-sampling processing is carried out to described first image according to the sample rate of the down-sampling, generating has the target pixel value
The second image.
3. method according to claim 1 or 2, which is characterized in that the step of first image for obtaining camera acquisition
Suddenly include:
At least two the first images of image signal processing unit ISP processing are received, described first image is to be acquired by camera
And handle the yuv format image obtained through the ISP.
4. according to the method described in claim 3, it is characterized in that, second image include at least two, it is described to described
Second image carries out default processing, and the step of generating third image includes:
Human face region at least two the second images described in identification;
Determine the U.S. face parameter of the human face region;
Using the U.S. face parameter, U.S. face processing is carried out to the human face region, generates third image.
5. according to the method described in claim 3, it is characterized in that, second image include at least two, it is described to described
Second image carries out default processing, and the step of generating third image includes:
Depth of field size information is calculated according at least two second images;
According to the depth of field size information, virtualization processing is carried out to second image, generates third image.
6. a kind of device of image procossing is applied to mobile terminal, which is characterized in that including:
Acquisition module, the first image for obtaining camera acquisition;
Down sample module generates the second image for carrying out down-sampling processing to described first image;
Default processing module generates third image, the default processing includes for carrying out default processing to second image
U.S. face processing and/or virtualization processing;
Interpolating module generates target image, the pixel value of the target image for carrying out interpolation processing to the third image
Difference between the pixel value of described first image is less than predetermined threshold value.
7. device according to claim 6, which is characterized in that the down sample module includes:
The sample rate of sample rate determination sub-module, the sample rate for determining down-sampling, the down-sampling matches target pixel value;
Down-sampling submodule carries out down-sampling processing to described first image for the sample rate according to the down-sampling, generates
The second image with the target pixel value.
8. the device described according to claim 6 or 7, which is characterized in that the acquisition module includes:
Receiving submodule, at least two the first images for receiving image signal processing unit ISP processing, described first image
To be acquired by camera and handling the yuv format image obtained through the ISP.
9. device according to claim 8, which is characterized in that second image includes at least two, the default place
Managing module includes:
Identify submodule, for identification the human face region at least two second images;
Parameter determination submodule, the U.S. face parameter for determining the human face region;
U.S. face submodule, for using the U.S. face parameter, carrying out U.S. face processing to the human face region, generating third image.
10. device according to claim 8, which is characterized in that second image includes at least two, the default place
Managing module includes:
Computational submodule, at least two the second images to calculate depth of field size information according to;
Submodule is blurred, for according to the depth of field size information, carrying out virtualization processing to second image, generating third figure
Picture.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in image procossing method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the method that the image procossing as described in any one of claim 1 to 5 is realized when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711480312.7A CN108320263A (en) | 2017-12-29 | 2017-12-29 | A kind of method, device and mobile terminal of image procossing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711480312.7A CN108320263A (en) | 2017-12-29 | 2017-12-29 | A kind of method, device and mobile terminal of image procossing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108320263A true CN108320263A (en) | 2018-07-24 |
Family
ID=62892732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711480312.7A Pending CN108320263A (en) | 2017-12-29 | 2017-12-29 | A kind of method, device and mobile terminal of image procossing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108320263A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474784A (en) * | 2018-11-21 | 2019-03-15 | 维沃移动通信有限公司 | A kind of preview image processing method and terminal device |
CN110889809A (en) * | 2019-11-28 | 2020-03-17 | RealMe重庆移动通信有限公司 | Image processing method and device, electronic device and storage medium |
CN110971827A (en) * | 2019-12-09 | 2020-04-07 | Oppo广东移动通信有限公司 | Portrait mode shooting method and device, terminal equipment and storage medium |
CN111491095A (en) * | 2020-02-24 | 2020-08-04 | RealMe重庆移动通信有限公司 | Image blurring method and device and electronic equipment |
CN111641777A (en) * | 2020-02-28 | 2020-09-08 | 北京爱芯科技有限公司 | Image processing method, image processing apparatus, image processor, electronic device, and storage medium |
CN112514364A (en) * | 2019-11-29 | 2021-03-16 | 深圳市大疆创新科技有限公司 | Image signal processing apparatus, image signal processing method, camera, and movable platform |
CN116347217A (en) * | 2022-12-26 | 2023-06-27 | 荣耀终端有限公司 | Image processing method, device and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3703180B2 (en) * | 1995-09-21 | 2005-10-05 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN103685858A (en) * | 2012-08-31 | 2014-03-26 | 北京三星通信技术研究有限公司 | Real-time video processing method and equipment |
CN104104869A (en) * | 2014-06-25 | 2014-10-15 | 华为技术有限公司 | Photographing method and device and electronic equipment |
CN104811684A (en) * | 2015-04-02 | 2015-07-29 | 广东欧珀移动通信有限公司 | Three-dimensional beautification method and device of image |
CN105872447A (en) * | 2016-05-26 | 2016-08-17 | 努比亚技术有限公司 | Video image processing device and method |
CN106060423A (en) * | 2016-06-02 | 2016-10-26 | 广东欧珀移动通信有限公司 | Bokeh photograph generation method and device, and mobile terminal |
CN106355565A (en) * | 2016-09-30 | 2017-01-25 | 乐视控股(北京)有限公司 | Facial processing method and facial processing device |
CN106897979A (en) * | 2017-03-31 | 2017-06-27 | 联想(北京)有限公司 | Image processing method and system, electronic equipment |
CN106960413A (en) * | 2017-03-24 | 2017-07-18 | 深圳市金立通信设备有限公司 | A kind of method and terminal of image virtualization |
CN107169939A (en) * | 2017-05-31 | 2017-09-15 | 广东欧珀移动通信有限公司 | Image processing method and related product |
-
2017
- 2017-12-29 CN CN201711480312.7A patent/CN108320263A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3703180B2 (en) * | 1995-09-21 | 2005-10-05 | キヤノン株式会社 | Image processing apparatus and image processing method |
CN103685858A (en) * | 2012-08-31 | 2014-03-26 | 北京三星通信技术研究有限公司 | Real-time video processing method and equipment |
CN104104869A (en) * | 2014-06-25 | 2014-10-15 | 华为技术有限公司 | Photographing method and device and electronic equipment |
CN104811684A (en) * | 2015-04-02 | 2015-07-29 | 广东欧珀移动通信有限公司 | Three-dimensional beautification method and device of image |
CN105872447A (en) * | 2016-05-26 | 2016-08-17 | 努比亚技术有限公司 | Video image processing device and method |
CN106060423A (en) * | 2016-06-02 | 2016-10-26 | 广东欧珀移动通信有限公司 | Bokeh photograph generation method and device, and mobile terminal |
CN106355565A (en) * | 2016-09-30 | 2017-01-25 | 乐视控股(北京)有限公司 | Facial processing method and facial processing device |
CN106960413A (en) * | 2017-03-24 | 2017-07-18 | 深圳市金立通信设备有限公司 | A kind of method and terminal of image virtualization |
CN106897979A (en) * | 2017-03-31 | 2017-06-27 | 联想(北京)有限公司 | Image processing method and system, electronic equipment |
CN107169939A (en) * | 2017-05-31 | 2017-09-15 | 广东欧珀移动通信有限公司 | Image processing method and related product |
Non-Patent Citations (2)
Title |
---|
刘千桂等: "《互联网商业模式创新发展与路径选择》", 31 January 2015, 北京企业管理出版社 * |
陈浩等: "下采样和插值同一性的实现及其应用", 《计算机工程》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474784A (en) * | 2018-11-21 | 2019-03-15 | 维沃移动通信有限公司 | A kind of preview image processing method and terminal device |
CN109474784B (en) * | 2018-11-21 | 2020-07-17 | 维沃移动通信有限公司 | Preview image processing method and terminal equipment |
CN110889809A (en) * | 2019-11-28 | 2020-03-17 | RealMe重庆移动通信有限公司 | Image processing method and device, electronic device and storage medium |
CN112514364A (en) * | 2019-11-29 | 2021-03-16 | 深圳市大疆创新科技有限公司 | Image signal processing apparatus, image signal processing method, camera, and movable platform |
CN110971827A (en) * | 2019-12-09 | 2020-04-07 | Oppo广东移动通信有限公司 | Portrait mode shooting method and device, terminal equipment and storage medium |
CN111491095A (en) * | 2020-02-24 | 2020-08-04 | RealMe重庆移动通信有限公司 | Image blurring method and device and electronic equipment |
CN111641777A (en) * | 2020-02-28 | 2020-09-08 | 北京爱芯科技有限公司 | Image processing method, image processing apparatus, image processor, electronic device, and storage medium |
CN116347217A (en) * | 2022-12-26 | 2023-06-27 | 荣耀终端有限公司 | Image processing method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107509038B (en) | A kind of image pickup method and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN107566730B (en) | A kind of panoramic picture image pickup method and mobile terminal | |
CN108540724A (en) | A kind of image pickup method and mobile terminal | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN109445894A (en) | A kind of screenshot method and electronic equipment | |
CN107592466A (en) | A kind of photographic method and mobile terminal | |
CN107483836B (en) | A kind of image pickup method and mobile terminal | |
CN107682639B (en) | A kind of image processing method, device and mobile terminal | |
CN108012084A (en) | A kind of image generating method, application processor AP and third party's picture processing chip | |
CN107635110A (en) | A kind of video interception method and terminal | |
CN108492246A (en) | A kind of image processing method, device and mobile terminal | |
CN108989678A (en) | A kind of image processing method, mobile terminal | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN107820022A (en) | A kind of photographic method and mobile terminal | |
CN107886321A (en) | A kind of method of payment and mobile terminal | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN110213485A (en) | A kind of image processing method and terminal | |
CN108564613A (en) | A kind of depth data acquisition methods and mobile terminal | |
CN108093306A (en) | A kind of barrage display methods and mobile terminal | |
CN107682637A (en) | A kind of image pickup method, mobile terminal and computer-readable recording medium | |
CN108174081B (en) | A kind of image pickup method and mobile terminal | |
CN109005355A (en) | A kind of image pickup method and mobile terminal | |
CN108718389A (en) | A kind of screening-mode selection method and mobile terminal | |
CN107959755A (en) | A kind of photographic 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: 20180724 |
|
RJ01 | Rejection of invention patent application after publication |