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
- generate
- images
- beautification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4023—Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
Abstract
本发明实施例提供了一种图像处理的方法、装置及移动终端,所述方法包括:获取摄像头采集的第一图像;对所述第一图像进行下采样处理,生成第二图像;对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值,解决了现有技术中直接对摄像头采集的较高像素值图像进行美颜或虚化处理的耗时较长的问题。
Embodiments of the present invention provide an image processing method, device, and mobile terminal. The method includes: acquiring a first image captured by a camera; performing down-sampling processing on the first image to generate a second image; Perform preset processing on the second image to generate a third image, the preset processing includes beautification processing and/or blurring processing; interpolation processing is performed on the third image to generate a target image, and the pixel value of the target image The difference with the pixel value of the first image is smaller than the preset threshold, which solves the time-consuming problem in the prior art of directly performing beautification or blurring on images with higher pixel values captured by the camera.
Description
技术领域technical field
本发明实施例涉及图像处理技术领域,尤其涉及一种图像处理的方法、装置及移动终端。Embodiments of the present invention relate to the technical field of image processing, and in particular, to an image processing method, device, and mobile terminal.
背景技术Background technique
目前,智能手机上的拍照功能十分强大,不仅能够对照片进行美颜等处理,还可以呈现一些原本只能在后期处理才能获得的拍照效果。例如,照片虚化等等。At present, the camera function on smartphones is very powerful. It can not only beautify photos, but also present some camera effects that can only be obtained in post-processing. For example, photo blur and so on.
但是,为了获得个性化的照片,在进行美颜拍照或虚化拍照时,智能手机的处理器需要对图像进行大量的运算,不仅功耗非常大,用户等待图像处理的时间也特别长。尤其是在同时采用多种特效拍拍摄高像素值的照片时,如同时开启美颜和虚化功能拍摄2000W像素的照片时,处理器必须先对图像进行美颜处理,然后对美颜后的图像再进行虚化处理,由于拍摄的像素值较高,美颜和虚化处理时间也就更长了,用户必须要经过长时间的等待才能完成一张照片的拍摄。However, in order to obtain personalized photos, the processor of the smartphone needs to perform a large number of calculations on the images when taking beautification photos or blurring photos, which not only consumes a lot of power, but also takes a long time for users to wait for image processing. Especially when multiple special effects are used to shoot high-pixel-value photos at the same time, such as when the beautification and blurring functions are turned on at the same time to take a 2000W pixel photo, the processor must first perform beautification processing on the image, and then perform beautification processing on the beautified image. The image is then blurred. Due to the high pixel value of the shot, the beauty and blur processing time will be longer. The user must wait for a long time to complete the shooting of a photo.
发明内容Contents of the invention
本发明实施例提供了一种图像处理的方法、装置及移动终端,以解决在对较高像素值的照片进行美颜和虚化处理时耗时较长的问题。Embodiments of the present invention provide an image processing method, device, and mobile terminal, so as to solve the problem that it takes a long time to perform beautification and blur processing on photos with relatively high pixel values.
为了解决上述技术问题,第一方面,本发明实施例提供了一种图像处理的方法,应用于移动终端,包括:In order to solve the above technical problems, in the first aspect, the embodiment of the present invention provides an image processing method applied to a mobile terminal, including:
获取摄像头采集的第一图像;Obtain the first image collected by the camera;
对所述第一图像进行下采样处理,生成第二图像;performing downsampling processing on the first image to generate a second image;
对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;performing preset processing on the second image to generate a third image, where the preset processing includes beautification processing and/or blurring processing;
对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。Interpolation processing is performed on the third image to generate a target image, and a difference between a pixel value of the target image and a pixel value of the first image is smaller than a preset threshold.
第二方面,本发明实施例还提供了一种图像处理的装置,应用于移动终端,包括:In the second aspect, the embodiment of the present invention also provides an image processing device, which is applied to a mobile terminal, including:
获取模块,用于获取摄像头采集的第一图像;An acquisition module, configured to acquire the first image collected by the camera;
下采样模块,用于对所述第一图像进行下采样处理,生成第二图像;A downsampling module, configured to downsample the first image to generate a second image;
预设处理模块,用于对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;A preset processing module, configured to perform preset processing on the second image to generate a third image, where the preset processing includes beautification processing and/or blurring processing;
插值模块,用于对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。The interpolation module is configured to perform interpolation processing on the third image to generate a target image, and the difference between the pixel values of the target image and the pixel values of the first image is smaller than a preset threshold.
第三方面,本发明实施例还提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的图像处理的方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When executed, the steps of the above-mentioned image processing method are realized.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述的图像处理的方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above image processing method are realized.
这样,在本发明实施例中,在获取摄像头采集的第一图像后,并不直接对第一图像作美颜、虚化等处理,而是通过下采样将第一图像处理为较低像素值的第二图像,然后对第二图像作美颜、虚化等处理,进而再通过插值处理,将第三图像还原为原始像素值的目标图像提高了美颜、虚化处理的效率,减少了处理时间,降低了拍照时的功耗,解决了现有技术中直接对摄像头采集的较高像素值图像进行美颜或虚化处理的耗时较长的问题。In this way, in the embodiment of the present invention, after the first image captured by the camera is acquired, the first image is not directly processed for beautification, blurring, etc., but the first image is processed to a lower pixel value by down-sampling The second image, and then perform beautification, blurring and other processing on the second image, and then through interpolation processing, the third image is restored to the target image with original pixel values, which improves the efficiency of beautification and blurring processing, and reduces the The processing time reduces the power consumption when taking pictures, and solves the time-consuming problem of directly performing beautification or blurring on images with higher pixel values collected by the camera in the prior art.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是本发明一个实施例的一种图像处理的方法的步骤流程图;Fig. 1 is a flow chart of the steps of a method for image processing according to an embodiment of the present invention;
图2是本发明一个实施例的另一种图像处理的方法的步骤流程图;Fig. 2 is a flow chart of steps of another image processing method according to an embodiment of the present invention;
图3是本发明一个实施例的一种图像处理的装置的结构框图;Fig. 3 is a structural block diagram of an image processing device according to an embodiment of the present invention;
图4是本发明一个实施例的一种移动终端的硬件结构示意图。Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参照图1,示出了本发明一个实施例的一种图像处理的方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of an image processing method according to an embodiment of the present invention, which may specifically include the following steps:
步骤101,获取摄像头采集的第一图像;Step 101, obtaining the first image collected by the camera;
需要说明的是,本方法可以应用于移动终端中。例如,手机、平板电脑,或者其他具有摄像功能的电子设备。本实施例对移动终端的具体类型不作限定。It should be noted that this method can be applied to mobile terminals. For example, mobile phones, tablet computers, or other electronic devices with camera functions. This embodiment does not limit the specific type of the mobile terminal.
在本发明实施例中,第一图像可以是由移动终端的摄像头采集的图像,该图像可以具有较高的像素值。通常,采用较高的像素值拍摄获得的图像具有较高的图像质量。In this embodiment of the present invention, the first image may be an image captured by a camera of the mobile terminal, and the image may have a relatively high pixel value. Generally, images captured with higher pixel values have higher image quality.
需要说明的是,第一图像的像素值可以是与移动终端的摄像头所能拍摄获得的像素值相匹配的。例如,若移动终端的摄像头能够拍摄获得2000W像素的图像,则第一图像的像素值最高可以为2000W像素。It should be noted that the pixel value of the first image may match the pixel value that can be captured by the camera of the mobile terminal. For example, if the camera of the mobile terminal can capture an image with 2000W pixels, the maximum pixel value of the first image can be 2000W pixels.
或者,第一图像的像素值可以是由用户自行设置的像素值。通常,用户自行设置的像素值应当小于移动终端的摄像头所能拍摄获得的最大像素值。例如,若移动终端的摄像头能够拍摄获得2000W像素的图像,则用户可以根据实际需要自行设置在拍摄时获得不超过的2000W像素的第一图像。Alternatively, the pixel value of the first image may be a pixel value set by the user. Generally, the pixel value set by the user should be smaller than the maximum pixel value that can be captured by the camera of the mobile terminal. For example, if the camera of the mobile terminal can capture images with 2000W pixels, the user can set the first image with no more than 2000W pixels when shooting according to actual needs.
步骤102,对所述第一图像进行下采样处理,生成第二图像;Step 102, performing down-sampling processing on the first image to generate a second image;
下采样(Subsampled)是一种图像的处理操作,其原理是:对于一幅尺寸为M*N的图像,对其进行s倍下采样,即得到(M/s)*(N/s)尺寸的分辨率图像。Downsampling (Subsampled) is an image processing operation. Its principle is: for an image with a size of M*N, it is downsampled by s times to obtain (M/s)*(N/s) size resolution image.
在本发明实施例中,对第一图像进行下采样处理,能够获得较低像素值的第二图像。In the embodiment of the present invention, a second image with a lower pixel value can be obtained by performing down-sampling processing on the first image.
例如,若第一图像的像素值为2000W,经过下采样处理,能够获得像素值为500W的第二图像。当然,对第一图像进行下采样处理获得的第二图像的像素值大小可以根据实际的采样率确定,该采样率可以由本领域技术人员或用户在实际拍照时根据实际需要确定,本实施例对此不作限定。For example, if the pixel value of the first image is 2000W, a second image with a pixel value of 500W can be obtained through down-sampling processing. Of course, the pixel value of the second image obtained by down-sampling the first image can be determined according to the actual sampling rate, and the sampling rate can be determined according to the actual needs of those skilled in the art or users when actually taking pictures. This is not limited.
步骤103,对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;Step 103, performing preset processing on the second image to generate a third image, where the preset processing includes beautification processing and/or blurring processing;
在本发明实施例中,由于第二图像相较于第一图像具有较低的像素值,因此在对第二图像进行后续处理时,所耗费的功耗更少,时间更短。In the embodiment of the present invention, since the second image has lower pixel values than the first image, less power consumption and shorter time are consumed when the second image is subsequently processed.
例如,可以对第二图像作美颜处理,或者,对第二图像作虚化处理,相较于直接对较高像素值的第一图像作每样处理或虚化处理,所花费的时间更短。当然,也可以根据实际需要,同时对第二图像作美颜和虚化处理,本实施例对此不作限定。For example, the second image can be beautified, or the second image can be blurred. Compared with directly performing each process or blurring on the first image with a higher pixel value, it takes less time. short. Of course, it is also possible to perform beautification and blur processing on the second image at the same time according to actual needs, which is not limited in this embodiment.
需要说明的是,美颜和/或虚化处理对图像的像素值影响不大。也就是说,在对第二图像作美颜和/或虚化处理后获得的第三图像,其像素值变化不大。It should be noted that the beautification and/or blur processing has little influence on the pixel value of the image. That is to say, the pixel values of the third image obtained after beautifying and/or blurring the second image have little change.
例如,第二图像为500W像素的图像,则美颜和/或虚化处理后的第三图像的像素值也应该在500W左右。For example, if the second image is an image with 500W pixels, then the pixel value of the third image after beautification and/or blur processing should also be around 500W.
步骤104,对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。Step 104, performing interpolation processing on the third image to generate a target image, where the difference between the pixel values of the target image and the pixel values of the first image is smaller than a preset threshold.
在本发明实施例中,由于在对图像进行美颜和/或虚化处理前,对图像进行了下采样处理,降低了图像的像素值,因此,在完成美颜和/或虚化处理后,可以继续对第三图像作插值处理,获得目标图像。In the embodiment of the present invention, before the beautification and/or blurring process is performed on the image, the image is down-sampled to reduce the pixel value of the image. Therefore, after the beautification and/or blurring process is completed , you can continue to perform interpolation processing on the third image to obtain the target image.
插值(Interpolating)也称作上采样(Upsampling),就是利用已知邻近像素点的灰度值(或RGB图像中的三色值)来产生未知像素点的灰度值,以便由原始图像再生出具有更高分辨率的图像。Interpolating (Interpolating), also known as upsampling (Upsampling), is to use the gray value of the known adjacent pixels (or the three-color value in the RGB image) to generate the gray value of the unknown pixel, so as to reproduce it from the original image. Images with higher resolution.
在本发明实施例中,插值处理后的目标图像的像素值与第一图像的像素值之间的差值可以小于预设阈值。本领域技术人员可以根据实际需要确定预设阈值的具体大小,本实施例对此不作限定。In the embodiment of the present invention, the difference between the pixel value of the interpolated target image and the pixel value of the first image may be smaller than a preset threshold. Those skilled in the art may determine the specific value of the preset threshold according to actual needs, which is not limited in this embodiment.
在具体实现中,为了获得与第一图像的像素值几乎相同的目标图像,则可以尽可能设定更小的预设阈值。In a specific implementation, in order to obtain a target image having almost the same pixel value as that of the first image, a smaller preset threshold may be set as much as possible.
例如,若第一图像为2000W,若希望在美颜和/或虚化处理后获得的目标图像的像素值能接近2000W,则可以设置一个更小的预设阈值,从而在对较低像素值的第三图像进行插值处理后,能够获得一个较高像素值的目标图像。For example, if the first image is 2000W, if you want the pixel value of the target image to be close to 2000W after beautification and/or blur processing, you can set a smaller preset threshold, so that the lower pixel value After interpolation processing is performed on the third image, a target image with a higher pixel value can be obtained.
在本发明实施例中,在获取摄像头采集的第一图像后,并不直接对第一图像作美颜、虚化等处理,而是通过下采样将第一图像处理为较低像素值的第二图像,然后对第二图像作美颜、虚化等处理,进而再通过插值处理,将第三图像还原为原始像素值的目标图像提高了美颜、虚化处理的效率,减少了处理时间,降低了拍照时的功耗。In the embodiment of the present invention, after the first image captured by the camera is acquired, the first image is not directly processed for beautification, blurring, etc., but the first image is processed into a second image with a lower pixel value by down-sampling. second image, and then perform beautification, blurring and other processing on the second image, and then through interpolation processing, restore the third image to the target image with original pixel values, which improves the efficiency of beautification and blurring processing and reduces the processing time , reducing the power consumption when taking pictures.
参照图2,示出了本发明一个实施例的另一种图像处理的方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flowchart of steps of another image processing method according to an embodiment of the present invention, which may specifically include the following steps:
步骤201,接收图像信号处理单元ISP处理的至少两张第一图像,所述第一图像为由摄像头采集并经所述ISP处理获得的YUV格式图像;Step 201, receiving at least two first images processed by the image signal processing unit ISP, the first images are images in YUV format collected by the camera and processed by the ISP;
在本发明实施例中,移动终端的摄像在采集图像后,可以经两路传感器输出数据,并经图像信号处理单元ISP处理后,获得两张YUV格式图像。In the embodiment of the present invention, after the camera of the mobile terminal collects images, it can output data through two sensors, and after being processed by the image signal processing unit ISP, two images in YUV format can be obtained.
需要说明的是,两张YUV格式图像的像素值可以是与移动终端的摄像头所能拍摄获得的像素值相同的。It should be noted that the pixel values of the two YUV format images may be the same as the pixel values that can be captured by the camera of the mobile terminal.
例如,移动终端的摄像头为2000W摄像头,则获得的两张两张YUV格式图像的像素值也可以是2000W。For example, if the camera of the mobile terminal is a 2000W camera, the pixel values of the two obtained two images in YUV format may also be 2000W.
步骤202,确定下采样的采样率,所述下采样的采样率匹配目标像素值;Step 202, determine the sampling rate of downsampling, and the sampling rate of downsampling matches the target pixel value;
在本发明实施例中,目标像素值可以是指对两张YUV格式的第一图像进行下采样处理后,获得的两张第二图像的像素值。In this embodiment of the present invention, the target pixel values may refer to pixel values of two second images obtained after downsampling the two first images in YUV format.
例如,若两张YUV格式的第一图像的像素值为2000W,用户确定的对第一图像进行下采样后获得的图像的像素值为500W,则目标像素值即为500W。For example, if the pixel value of two first images in YUV format is 2000W, and the pixel value of the image obtained by downsampling the first image determined by the user is 500W, then the target pixel value is 500W.
在本发明实施例中,下采样的采样率可以是与目标像素值相匹配的。即,通过某一采样率对第一图像进行处理,能够获得具有目标像素值的第二图像。In the embodiment of the present invention, the sampling rate of downsampling may match the target pixel value. That is, the second image with the target pixel value can be obtained by processing the first image with a certain sampling rate.
步骤203,按照所述下采样的采样率对所述第一图像进行下采样处理,生成具有所述目标像素值的第二图像;Step 203, performing downsampling processing on the first image according to the downsampling sampling rate to generate a second image with the target pixel value;
在本发明实施例中,在确定出下采样的采样率后,便可以按照该采样率进行下采样,从而获得第二图像,降低第一图像的像素值。In the embodiment of the present invention, after the downsampling sampling rate is determined, downsampling can be performed according to the sampling rate, so as to obtain the second image and reduce the pixel value of the first image.
步骤204,对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;Step 204, performing preset processing on the second image to generate a third image, where the preset processing includes beautification processing and/or blurring processing;
在本发明实施例中,在获得较低像素值的第二图像后,可以对第二图像作美颜和/或虚化处理。In the embodiment of the present invention, after the second image with a lower pixel value is obtained, beautification and/or blur processing may be performed on the second image.
在具体实现中,可以首先识别至少两张第二图像中的人脸区域,然后确定人脸区域的美颜参数,并采用该美颜参数,对人脸区域进行美颜处理,生成第三图像。In a specific implementation, it is possible to first identify the face areas in at least two second images, then determine the beautification parameters of the face areas, and use the beautification parameters to perform beautification processing on the face areas to generate a third image .
或者,可以根据至少两张第二图像计算景深大小信息,然后根据景深大小信息,对第二图像进行虚化处理,生成第三图像。Alternatively, the depth of field information may be calculated according to at least two second images, and then the second image may be blurred according to the depth of field information to generate a third image.
在本发明的一种示例中,还可以首先对两张第二图像进行美颜处理,然后对美颜处理后的图像作虚化处理,以同时完成美颜和虚化处理后的图像作为第三图像。In an example of the present invention, it is also possible to perform beautification processing on two second images first, and then perform blurring processing on the images after beautification processing, and use the image after both beautification and blurring processing as the first Three images.
需要说明的是,美颜和虚化处理并不影响原图像的像素值。因此,第三图像的像素值与第二图像的像素值之间的差值应当小于预设阈值。It should be noted that the beautification and blur processing does not affect the pixel value of the original image. Therefore, the difference between the pixel values of the third image and the pixel values of the second image should be smaller than a preset threshold.
步骤205,对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。Step 205, performing interpolation processing on the third image to generate a target image, where the difference between the pixel values of the target image and the pixel values of the first image is smaller than a preset threshold.
在本发明实施例中,由于在对图像进行美颜和/或虚化处理前,对图像进行了下采样处理,降低了图像的像素值,因此,在完成美颜和/或虚化处理后,可以继续对第三图像作插值处理,将较低像素值的第三图像还原为较高像素值的目标图像。In the embodiment of the present invention, before the beautification and/or blurring process is performed on the image, the image is down-sampled to reduce the pixel value of the image. Therefore, after the beautification and/or blurring process is completed , the third image can be continuously interpolated to restore the third image with a lower pixel value to a target image with a higher pixel value.
在本发明实施例中,通过确定下采样的采样率,使得拍摄的第一图像可以被处理为较低像素值的第二图像,然后对第二图像作美颜、虚化等处理,减少了移动终端对图像进行美颜、虚化等处理的处理时间;在完成美颜、虚化等处理后,通过对第三图像作插值处理,从而能够将像素值较低的第三图像还原为较高像素值的目标图像,匹配了用户原本的拍摄要求。In the embodiment of the present invention, by determining the sampling rate of downsampling, the captured first image can be processed into a second image with a lower pixel value, and then the second image is processed by beautification, blurring, etc., reducing the The processing time for the mobile terminal to perform beautification, blurring, and other processing on the image; after completing the beautification, blurring, and other processing, the third image with a lower pixel value can be restored to a lower pixel value by interpolation processing. The target image with high pixel value matches the user's original shooting requirements.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图3,示出了本发明一个实施例的一种图像处理的装置的结构框图,所述装置300具体可以包括如下模块:Referring to FIG. 3 , it shows a structural block diagram of an image processing device according to an embodiment of the present invention. The device 300 may specifically include the following modules:
获取模块310,用于获取摄像头采集的第一图像;An acquisition module 310, configured to acquire the first image collected by the camera;
下采样模块320,用于对所述第一图像进行下采样处理,生成第二图像;A down-sampling module 320, configured to perform down-sampling processing on the first image to generate a second image;
预设处理模块330,用于对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;The preset processing module 330 is configured to perform preset processing on the second image to generate a third image, and the preset processing includes beautification processing and/or blurring processing;
插值模块340,用于对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。The interpolation module 340 is configured to perform interpolation processing on the third image to generate a target image, and the difference between the pixel values of the target image and the pixel values of the first image is smaller than a preset threshold.
在本发明实施例中,所述下采样模块320具体可以包括如下子模块:In the embodiment of the present invention, the down-sampling module 320 may specifically include the following submodules:
采样率确定子模块,用于确定下采样的采样率,所述下采样的采样率匹配目标像素值;The sampling rate determination submodule is used to determine the sampling rate of the downsampling, and the sampling rate of the downsampling matches the target pixel value;
下采样子模块,用于按照所述下采样的采样率对所述第一图像进行下采样处理,生成具有所述目标像素值的第二图像。The down-sampling sub-module is configured to perform down-sampling processing on the first image according to the down-sampling sampling rate to generate a second image with the target pixel value.
在本发明实施例中,所述获取模块310具体可以包括如下子模块:In the embodiment of the present invention, the acquiring module 310 may specifically include the following submodules:
接收子模块,用于接收图像信号处理单元ISP处理的至少两张第一图像,所述第一图像为由摄像头采集并经所述ISP处理获得的YUV格式图像。The receiving sub-module is used to receive at least two first images processed by the image signal processing unit ISP, and the first images are images in YUV format collected by the camera and processed by the ISP.
在本发明实施例中,所述第二图像可以包括至少两张,所述预设处理模块330具体可以包括如下子模块:In the embodiment of the present invention, the second image may include at least two images, and the preset processing module 330 may specifically include the following submodules:
识别子模块,用于识别所述至少两张第二图像中的人脸区域;An identification submodule, configured to identify the face area in the at least two second images;
参数确定子模块,用于确定所述人脸区域的美颜参数;A parameter determination submodule, configured to determine the beautifying parameters of the face area;
美颜子模块,用于采用所述美颜参数,对所述人脸区域进行美颜处理,生成第三图像。The beautification sub-module is configured to use the beautification parameters to perform beautification processing on the face area to generate a third image.
在本发明实施例中,所述第二图像可以包括至少两张,所述预设处理模块330还可以包括如下子模块:In the embodiment of the present invention, the second image may include at least two images, and the preset processing module 330 may also include the following submodules:
计算子模块,用于根据所述至少两张第二图像计算景深大小信息;A calculation submodule, configured to calculate the depth of field size information according to the at least two second images;
虚化子模块,用于根据所述景深大小信息,对所述第二图像进行虚化处理,生成第三图像。The blur sub-module is configured to perform blur processing on the second image according to the depth of field size information to generate a third image.
装置300能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例在获取摄像头采集的第一图像后,并不直接对第一图像作美颜、虚化等处理,而是通过下采样将第一图像处理为较低像素值的第二图像,然后对第二图像作美颜、虚化等处理,进而再通过插值处理,将第三图像还原为原始像素值的目标图像提高了美颜、虚化处理的效率,减少了处理时间,降低了拍照时的功耗。The device 300 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition. In the embodiment of the present invention, after the first image captured by the camera is acquired, the first image is not directly processed for beautification, blurring, etc., but the first image is processed into a second image with a lower pixel value by down-sampling, Then, the second image is processed by beautification and blurring, and then through interpolation processing, the third image is restored to the target image of the original pixel value, which improves the efficiency of beautification and blurring, reduces processing time, and reduces Power consumption when taking pictures.
参照图4,示出了实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Referring to FIG. 4 , it shows a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, and a sensor 405 , a display unit 406 , a user input unit 407 , an interface unit 408 , a memory 409 , a processor 410 , and a power supply 411 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 4 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,射频单元401,用于接收获取摄像头采集的第一图像;Wherein, the radio frequency unit 401 is used to receive and obtain the first image collected by the camera;
处理器410,用于对所述第一图像进行下采样处理,生成第二图像;对所述第二图像进行预设处理,生成第三图像,所述预设处理包括美颜处理和/或虚化处理;对所述第三图像进行插值处理,生成目标图像,所述目标图像的像素值与所述第一图像的像素值之间的差值小于预设阈值。The processor 410 is configured to perform down-sampling processing on the first image to generate a second image; perform preset processing on the second image to generate a third image, and the preset processing includes beautification processing and/or Blurring processing: performing interpolation processing on the third image to generate a target image, where a difference between a pixel value of the target image and a pixel value of the first image is smaller than a preset threshold.
这样,在本发明实施例中,在获取摄像头采集的第一图像后,并不直接对第一图像作美颜、虚化等处理,而是通过下采样将第一图像处理为较低像素值的第二图像,然后对第二图像作美颜、虚化等处理,进而再通过插值处理,将第三图像还原为原始像素值的目标图像提高了美颜、虚化处理的效率,减少了处理时间,降低了拍照时的功耗。In this way, in the embodiment of the present invention, after the first image captured by the camera is acquired, the first image is not directly processed for beautification, blurring, etc., but the first image is processed to a lower pixel value by down-sampling The second image, and then perform beautification, blurring and other processing on the second image, and then through interpolation processing, the third image is restored to the target image with original pixel values, which improves the efficiency of beautification and blurring processing, and reduces the Processing time, reducing power consumption when taking pictures.
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 410; Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 402, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与移动终端400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 can also provide audio output related to a specific function performed by the mobile terminal 400 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used for receiving audio or video signals. The input unit 404 can include a graphics processing unit (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processing unit 4041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 406 . The image frames processed by the graphics processor 4041 may be stored in the memory 409 (or other storage media) or sent via the radio frequency unit 401 or the network module 402 . The microphone 4042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 for output in the case of a phone call mode.
移动终端400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在移动终端400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and the display panel 4061 when the mobile terminal 400 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 4071 or near the touch panel 4071). operate). The touch panel 4071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 410, receive the command sent by the processor 410 and execute it. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071 , the user input unit 407 may also include other input devices 4072 . Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 4071 can be covered on the display panel 4061, and when the touch panel 4071 detects a touch operation on or near it, it will be sent to the processor 410 to determine the type of the touch event, and then the processor 410 will The type of event provides a corresponding visual output on the display panel 4061 . Although in FIG. 4, the touch panel 4071 and the display panel 4061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元408为外部装置与移动终端400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端400内的一个或多个元件或者可以用于在移动终端400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device to the mobile terminal 400 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 408 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs as well as various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器410是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 409, and calling data stored in the memory 409 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410 .
移动终端400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 400 can also include a power supply 411 (such as a battery) for supplying power to various components. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端400包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 400 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述图像处理的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 410, a memory 409, a computer program stored in the memory 409 and operable on the processor 410, when the computer program is executed by the processor 410 Each process of the embodiment of the above image processing method can achieve the same technical effect. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图像处理的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned image processing method embodiment can be achieved, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (12)
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 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 (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474784A (en) * | 2018-11-21 | 2019-03-15 | 维沃移动通信有限公司 | A 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 |
US12217388B2 (en) | 2019-11-28 | 2025-02-04 | Realme Chongqing Mobile Telecommunications Corp, Ltd. | Image processing method and device, electronic equipment, 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 |
CN116347217B (en) * | 2022-12-26 | 2024-06-21 | 荣耀终端有限公司 | Image processing method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566730B (en) | A panoramic image shooting method and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN108492246B (en) | Image processing method and device and mobile terminal | |
CN108924414B (en) | A shooting method and terminal equipment | |
CN108038825B (en) | Image processing method and mobile terminal | |
CN107169939A (en) | Image processing method and related product | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107817939A (en) | A kind of image processing method and mobile terminal | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN107730460A (en) | A kind of image processing method and mobile terminal | |
CN108259743A (en) | Panoramic image shooting method and electronic device | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN110213485A (en) | A kind of image processing method and terminal | |
CN107682639A (en) | Image processing method, device and mobile terminal | |
CN107682637A (en) | A shooting method, mobile terminal and computer-readable storage medium | |
CN107845074A (en) | A kind of image rendering method and mobile terminal | |
CN107734281A (en) | A kind of image magnification method and mobile terminal | |
CN108174081B (en) | A shooting method and mobile terminal | |
CN108225278A (en) | A kind of distance measuring method, mobile terminal | |
CN107798662A (en) | A kind of image processing method and mobile terminal | |
CN107817963A (en) | A kind of method for displaying image, mobile terminal and computer-readable recording medium | |
CN107566740A (en) | A kind of image processing 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180724 |