WO2016101883A1 - 一种即时视频中的人脸美化方法和电子设备 - Google Patents

一种即时视频中的人脸美化方法和电子设备 Download PDF

Info

Publication number
WO2016101883A1
WO2016101883A1 PCT/CN2015/098355 CN2015098355W WO2016101883A1 WO 2016101883 A1 WO2016101883 A1 WO 2016101883A1 CN 2015098355 W CN2015098355 W CN 2015098355W WO 2016101883 A1 WO2016101883 A1 WO 2016101883A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
image
image area
current picture
beautified
Prior art date
Application number
PCT/CN2015/098355
Other languages
English (en)
French (fr)
Inventor
武俊敏
冯加伟
薛涵凛
Original Assignee
掌赢信息科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 掌赢信息科技(上海)有限公司 filed Critical 掌赢信息科技(上海)有限公司
Publication of WO2016101883A1 publication Critical patent/WO2016101883A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • the present invention relates to the field of image processing, and in particular, to a face beautification method and an electronic device in an instant video.
  • the prior art provides a method for facial beautification in an instant video.
  • the method specifically includes: acquiring a current frame image in an instant video, beautifying a face in the current frame image, and replacing the original frame image with the beautification Some current frame images continue to perform the above steps on the next frame image of the current frame, thereby realizing face beautification in the instant video.
  • the method provided by the prior art is complicated, the hardware requirements of the device are high, and the hardware of the mobile terminal such as the smart phone and the tablet cannot meet the hardware requirements of the method, so that the mobile terminal cannot use the method provided by the prior art.
  • the face of the instant video is beautified, or when the mobile terminal uses the method provided by the prior art, the processing resources and storage resources of the device are occupied in a large amount, which affects the use of the device, thereby reducing the user experience.
  • the embodiment of the invention provides a method and device for facializing in the instant video.
  • the technical solution is as follows:
  • a method for beautifying a face in an instant video comprising:
  • the beautified face image area is merged with the face image area to generate a merged face image area, and a current picture including at least the merged face image area is displayed.
  • the acquiring a face image area from a current picture of the instant video includes:
  • the face image region in the current picture is acquired from the grayscale image according to the face frame size, the face pixel distance, and the search zoom factor.
  • the method before the acquiring the grayscale image of the face image region in the current picture, the method further includes:
  • the method further includes:
  • a histogram equalization process is performed on the grayscale image of the face image region.
  • the method further include:
  • the face image area is scaled, and the coordinates of the face image area in the uncompressed current picture are acquired.
  • the beautifying the face image area includes:
  • the face detail image includes at least an eye, a mouth, and a nose
  • the face mask image including at least an eye, a mouth And the face part outside the nose
  • the face mask image is beautified to obtain a beautified face mask image.
  • the beautifying the facial mask image includes:
  • the obtaining the beautified face image area includes:
  • an electronic device comprising:
  • An obtaining module configured to obtain a face image area from a current picture of the instant video
  • a beautification module configured to beautify the face image area, and obtain a beautified face image area
  • the beautified face image area is merged with the face image area to generate a merged face image area
  • a display module configured to display a current picture including at least the merged face image area
  • a storage module configured to store the face image area, the beautified face image area, and the merged face image area.
  • the acquiring module is specifically configured to:
  • the storage module is further configured to store the grayscale image.
  • the device further includes:
  • a compression module configured to compress the current picture, and after the compression is completed, trigger the acquiring module to perform the step of acquiring the gray image of the face image area in the current picture.
  • the device further includes:
  • a processing module configured to perform a histogram equalization process on the grayscale image of the face image region.
  • the compression module is further configured to:
  • the acquiring module is further configured to acquire coordinates of the face image area in an uncompressed current picture;
  • the storage module is further configured to store the coordinates.
  • the apparatus further includes a separation module for separating a face in the grayscale image into a face detail image and a face mask image, wherein the face detail image includes at least an eye, a mouth, and a nose, the person
  • the face mask image includes a face portion other than the eyes, mouth, and nose;
  • the beautification module is configured to beautify the face mask image to obtain a beautified face mask image.
  • the beautification module is specifically used to:
  • the fusion module is configured to fuse the low-pass filtered image, the face mask image, and the high-pass filtered image to obtain the beautified face mask image.
  • the merging module is used to:
  • the face detail image is merged with the beautified face mask image to obtain a beautified face image area.
  • an electronic device including a video input module, a video output module, a sending module, a receiving module, a memory, and the video input module, the video output module, the transmitting module, and the receiving, respectively And a processor coupled to the memory, wherein the memory stores a set of program code, the processor is configured to invoke program code stored in the memory, and perform the following operations:
  • the beautified face image area is merged with the face image area to generate a merged face image area, and a current picture including at least the merged face image area is displayed.
  • the processor is further configured to invoke program code stored in the memory, and perform the following operations:
  • the face image region in the current picture is acquired from the grayscale image according to the face frame size, the face pixel distance, and the search zoom factor.
  • the processor is further configured to invoke program code stored in the memory, and perform the following operations:
  • the processor is further configured to invoke the program code stored in the memory, and execute the following operating:
  • a histogram equalization process is performed on the grayscale image of the face image region.
  • the processor is further configured to invoke program code stored in the memory, Do the following:
  • the face image area is scaled, and the coordinates of the face image area in the uncompressed current picture are acquired.
  • the processor is further configured to invoke the program code stored in the memory, and perform the following operations:
  • the face detail image includes at least an eye, a mouth, and a nose
  • the face mask image including at least an eye, a mouth And the face part outside the nose
  • the face mask image is beautified to obtain a beautified face mask image.
  • the processor is further configured to invoke the program code stored in the memory, and perform the following operations:
  • the processor is further configured to invoke the program code stored in the memory, and perform the following operations:
  • the face detail image is merged with the beautified face mask image to obtain a beautified face image area.
  • Embodiments of the present invention provide a method and an electronic device for facial glazing in an instant video, the method comprising: obtaining a face image region from a current picture of an instant video; beautifying the face image region to obtain a beautified a face image area; merging the beautified face image area with the face image area to generate a merged face image area, and displaying a current picture including at least the merged face image area .
  • FIG. 1 is a schematic diagram of an interaction system according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an interaction system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a face beautification method in an instant video according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for facializing a face in an instant video according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for facializing a face in an instant video according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a face beautification method in an instant video according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for facial landscaping in an instant video.
  • the method is applied to an interactive system including at least two mobile terminals and a server.
  • the interactive system may be as shown in FIG. 1 , wherein the mobile terminal 1 is an instant video sender, the mobile terminal 2 is an instant video receiver, and the instant video sent by the mobile terminal 1 is forwarded to the mobile terminal 2 via the server; wherein the mobile terminal can be a smart phone or a tablet (Tablet Personal Computer), which may also be other mobile terminals, and the specific mobile terminal is not limited in the embodiment of the present invention.
  • the mobile terminal includes at least a video input module and a video display module.
  • the video input module can include a camera.
  • the video display module can include a display screen, and at least one instant video program can be run in the mobile terminal, and the instant video program controls the video input module of the mobile terminal. Instant video with the video display module.
  • the execution body of the method provided by the embodiment of the present invention may be any one of the mobile terminal 1, the mobile terminal 2, and the server.
  • the execution subject of the method is the mobile terminal 1
  • the instant is The face in the video is beautified, and then the beautified instant video is sent to the server, and then sent by the server to the communication device 2, and the beautified instant video is displayed by the video display module in the communication device 2;
  • the mobile terminal 1 sends the instant video to the server after inputting the instant video through the video input module of the user, and the server visualizes the face in the instant video, and then sends the beautified face to the server.
  • the mobile terminal 2 displays the beautified instant video by the video display module in the communication device 2; if the execution subject of the method is the mobile terminal 2, the mobile terminal 1 inputs the instant video through its own video input module.
  • the video is sent to the server, and the server sends the instant video to the mobile terminal 2, and the mobile terminal 2 is in the live video. Face beautification, and through its own video display module to display real-time video after the landscaping.
  • the specific implementation body of the method in the interaction system is not limited in the embodiment of the present invention.
  • the method provided by the embodiment of the present invention can also be applied to a mobile terminal 1 only.
  • the interactive system can be referred to FIG. 2, wherein the mobile terminal 1 is an instant video sender, the mobile terminal 2 is an instant video receiver, and the mobile terminal includes at least a video input module and a video display.
  • the module, the video input module may include a camera, and the video display module may include a display screen, and at least one instant video program may be run in the mobile terminal, and the instant video program controls the video input module and the video display module of the mobile terminal to perform real-time video.
  • the execution body of the method provided by the embodiment of the present invention may be any one of the mobile terminal 1 and the mobile terminal 2.
  • the execution subject of the method is the mobile terminal 1
  • the mobile terminal 1 is After inputting the live video through the video input module of the user, the face in the instant video is beautified, and then the beautified instant video is sent to the communication device 2, and the beautified instant is displayed by the video display module in the communication device 2
  • the execution body of the method is the mobile terminal 2
  • the mobile terminal 1 sends the live video to the mobile terminal 2 after inputting the live video through its own video input module, and the mobile terminal 2 beautifies the face in the instant video. And then display the beautified instant video through its own video display module.
  • the specific implementation body of the method in the interaction system is not limited in the embodiment of the present invention.
  • An embodiment of the present invention provides a method for facial landscaping in an instant video.
  • the method is applied to any of the foregoing interaction systems. Referring to FIG. 3, the method includes:
  • the step may include:
  • the face image area in the current picture is acquired from the gray image according to the face frame size, the face pixel distance, and the search zoom factor.
  • the current picture before acquiring the grayscale image of the face image area in the current picture, the current picture may be compressed, and after the compression is completed, the step of acquiring the gray image of the face image area in the current picture is performed.
  • the face after obtaining the gray image of the face image area in the current picture, the face can also be The grayscale image of the image area is subjected to histogram equalization processing.
  • the face image area may also be scaled to obtain coordinates of the face image area in the uncompressed current picture.
  • the face in the grayscale image is separated into a face detail image and a face mask image, wherein the face detail image includes at least an eye, a mouth, and a nose, and the face mask image includes the eyes, the mouth, and the nose.
  • face detail image includes at least an eye, a mouth, and a nose
  • face mask image includes the eyes, the mouth, and the nose.
  • the beautification of the face mask image includes:
  • a low-pass filtered image, a face mask image, and a high-pass filtered image are combined to obtain a beautified face mask image.
  • the face detail image is merged with the beautified face mask image to obtain the beautified face image area.
  • the embodiment of the present invention provides a method for facial beautification in instant video by obtaining a face image region from a current picture of an instant video, beautifying the face image region, and obtaining a beautified face image region, and beautifying the face image region.
  • the subsequent face image area is merged with the face image area to generate a merged face image area, and the current picture including at least the merged face image area is displayed. Therefore, by landscaping the face in the instant video and merging with the previous face area, the picture quality of the instant video is improved, and the user experience is increased.
  • An embodiment of the present invention provides a method for facializing a face in an instant video. Referring to FIG. 4, the method includes:
  • the gray-scale channel of the current picture is obtained, and the gray-scale image of the face image area in the current picture is obtained by the gray-scale channel, and the gray-scale image is stored, where the embodiment of the present invention specifically acquires the current picture.
  • the manner in which the grayscale channel and the grayscale channel acquire the grayscale image of the face image region in the current screen is not limited.
  • the amount of data of the grayscale image is small compared to the color image, by acquiring the grayscale image of the face image region in the current image and beautifying, the amount of data processing during the face beautification process can be reduced, and the storage memory is saved. To improve the efficiency of face beautification.
  • the size of the face frame can be represented by min objectSize, and the min objectSize can be a matrix of at least length and width.
  • the matrix can be: [length, width] T , length and width can be positive rational numbers, respectively; face pixels
  • the distance can be represented by min neighbor, and the min neighbor can be a natural number;
  • the search scaling factor can be represented by ScaleFactor, and the ScaleFactor can be a positive rational number, wherein the face frame size is used to indicate the length and width of the grayscale image;
  • the face pixel distance is used to indicate the number of face images that are closest in the grayscale image. If there is only one face in the grayscale image, the face pixel distance is 1 if there are two faces in the grayscale image. , the face pixel distance is 2, and so on;
  • the search zoom factor is used to indicate the scaling of the grayscale image when performing face detection.
  • the face image area in the current picture is obtained from the gray image by the face frame size, the face pixel distance, and the search zoom factor, so that the acquired face image area includes at least the current user's face, and the face image area can be improved.
  • the accuracy of the acquisition thus achieving the reliability of face beautification.
  • the grayscale image is scaled by searching the zoom factor, which can reduce the data processing amount in the process of acquiring the face image region, and reduce the hardware requirement on the device, so that the mobile terminal can be
  • This method is used for face beautification in instant video, and the face beautification efficiency on the mobile terminal can be improved.
  • steps 401 to 402 are processes for acquiring a face image region from the current picture of the live video.
  • the face image region may be acquired from the current picture of the live video by other means.
  • the specific acquisition process is not limited in the embodiment of the present invention.
  • the grayscale image is scaled according to the scaling formula, and the scaling formula can be:
  • width represents the width of the face image area
  • height represents the height of the face image area
  • the coordinates of the face image area in the uncompressed picture image are obtained, denoted as [x, y], and [x, y] ⁇ R 2 , and the coordinates are stored.
  • the step may further include scaling the output face image area such that the face image area is within a rectangular range, wherein the rectangular range is to reduce the amount of calculation in the face beautification process.
  • the specific scaling process can be:
  • a1 represents the width
  • a2 represents the height
  • a1 and a2 are positive rational numbers, respectively.
  • the value of a1 can be set to 1.1, a2 The value is 1.05;
  • step 403 the grayscale image needs to be stored, and the specific storage process may be:
  • the face team The column refers to the number of faces.
  • the length of the queue is 1, and if there are n faces, the length of the queue is n.
  • a face in the grayscale image into a face detail image and a face mask image, wherein the face detail image includes at least an eye, a mouth, and a nose, and the face mask image includes the eyes, the mouth, and the nose.
  • the process can be:
  • the value of the eyebrow, the eyes, the nose, and the mouth of the face image in the histogram is obtained, and the value is taken to the left of the approximate valley of the histogram, and the skin of the face image is obtained in the histogram.
  • a value, which is to the right of the approximate valley point, through the approximate valley point of the histogram, the face details of the face image, the eye, the nose, and the face and the face skin can be classified.
  • the obtained facial details including the eyebrows, eyes, nose and mouth are required to retain the original image, and the skin obtained for the face is to beautify,
  • the face mask image includes a face portion other than the eyes, the mouth, and the nose.
  • the position corresponding to the face mask on the right side of the valley point is 0, and the corresponding position of the face mask on the left side of the valley point is 1 or Values different from 0 are not limited here;
  • the changing valley point is the selection point of the classification of details such as skin and eyes and mouth.
  • the process can be:
  • the three primary color channels include a red channel, a yellow channel, and a blue channel.
  • the blue channel and the yellow channel of the face mask are obtained, which are not limited.
  • the face mask can be Gaussian filtered by a blue channel to generate a contrast image.
  • the filter radius is set to [b1, b2] T , and Gaussian filtering is performed by the following formula:
  • the GaussianFilter is a Gaussian filtered image
  • Original is the original image
  • A1 is the displacement
  • A1 is a positive integer.
  • the Gaussian filter can be used to process the contrast image, the filter radius is [c1, c2] T , and c1 and c2 are positive integers respectively.
  • the original image is processed according to the contrast image, the contrast is large, and the original image is preserved, and the contrast is small, and the Gaussian filtered contrast image is retained.
  • Lagrange interpolation can also be used to adjust the brightness of the image.
  • the parameters are:
  • e1, e2, e3, and e4 are positive rational numbers, respectively.
  • the filtering method is not limited here, and other high-pass filtering methods such as canny may be used.
  • the high-pass filtered image, the face mask image, and the low-pass filtered image are fused, and the calculation formula is:
  • FaceArea is the face image area
  • Lowpass is the low-pass filter
  • Highpass is the high-pass filter
  • f1 is a positive integer.
  • Step 404 to step 405 are a process of beautifying the face image area.
  • the face image area can be beautified by other means.
  • the specific beautification mode is not limited in the embodiment of the present invention.
  • the face detail image is merged with the beautified face mask image, and the calculation formula is:
  • FaceArea is the face area obtained in the step
  • the deleted face is the image obtained in step S8
  • Output is the face image area after the beautification, with a rational number between 0 and 1, preferably, in practical applications, can be set
  • step 407 may also be performed, as shown in FIG. 5,
  • the face image area of the current picture is sampled, and the area is scaled, and the scaling calculation formula is:
  • width represents the width of the current picture and height represents the height of the face image area.
  • the manner of sampling in this step is direct downsampling of the image or using bilinear interpolation, or other means, which is not limited herein.
  • the face image area of the current picture is normalized, so that the complexity of the algorithm can be controlled so that it does not become larger because the resolution of the image becomes larger. Thereby, the amount of calculation is reduced, so that the face beautification in the instant video can be realized on the mobile terminal, thereby improving the efficiency of the face beautification.
  • step 408 may also be performed, as shown in FIG.
  • a histogram equalization process is performed on the grayscale image of the face image region, the histogram equalization process is acquired, and the histogram equalization data is stored.
  • the face beautification method in the instant video provided by the embodiment of the present invention, by scaling the face image in the instant video, the amount of data processing in the face beautification process is reduced, and the complexity of the algorithm is controlled, not only
  • the hardware of the mobile terminal can meet the hardware requirements of the face beautification, and also avoids a large occupation of the processing resources and storage resources of the device in the face beautification process, thereby improving the user experience.
  • the embodiment of the invention provides a method for facializing the face in the instant video, which realizes the facial effect beautification in the instant video on the mobile terminal, thereby increasing the user experience; and simultaneously performing the grayscale image of the face image region.
  • the histogram equalization processing improves the reliability of the face beautification on the mobile terminal, and improves the efficiency of the face beautification on the mobile terminal by controlling the complexity of the algorithm.
  • An embodiment of the present invention provides an electronic device 7.
  • the electronic device 7 includes:
  • An obtaining module 71 configured to acquire a face image area from a current picture of the instant video
  • the beautification module 72 is configured to beautify the face image area to obtain the beautified face image area;
  • the fusion module 73 fuses the beautified face image area and the face image area to generate a merged face image area;
  • the display module 74 is configured to display a current picture including at least the merged face image area
  • the storage module 75 is configured to store a face image area, a beautified face image area, and a merged face image area.
  • the obtaining module 71 is specifically configured to:
  • the storage module is also used to store grayscale images.
  • the electronic device 7 further includes:
  • the compression module is configured to compress the current picture, and after the compression is completed, trigger the acquiring module to perform the step of acquiring the gray image of the face image area in the current picture.
  • the electronic device 7 further includes:
  • the processing module is configured to perform histogram equalization processing on the grayscale image of the face image region.
  • the compression module is further configured to scale the face image area, and the obtaining module is further configured to acquire coordinates of the face image area in the uncompressed current picture;
  • the storage module is also used to store coordinates.
  • the electronic device 7 further includes a detecting module for detecting face details in the grayscale image
  • the electronic device 7 further includes a separation module for separating the face in the grayscale image into a face detail image and a face mask image, wherein the face detail image includes at least an eye, a mouth and a nose, and the face mask image includes an eye removal a face part other than the mouth and nose;
  • the beautification module 72 is used to beautify the face mask image and obtain the beautified face mask image.
  • the beautification module is specifically used to:
  • the fusion module 73 is configured to fuse the low-pass filtered image, the face mask image, and the high-pass filtered image to obtain the beautified face mask image.
  • the fusion module 73 is configured to:
  • the face detail image is merged with the beautified face mask image to obtain a beautified face image area.
  • the embodiment of the invention provides an electronic device, which enhances the user experience by realizing face beautification in the instant video on the mobile terminal.
  • the electronic device 8 includes a video input module 81 , a video output module 82 , a sending module 83 , a receiving module 84 , a memory 85 , and a video input module and a video output respectively.
  • the beautified face image area and the face image area are merged to generate a merged face image area, and the current picture including at least the merged face image area is displayed.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • the face image area in the current picture is acquired from the gray image according to the face frame size, the face pixel distance, and the search zoom factor.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • the current picture is compressed, and after the compression is completed, a step of acquiring a grayscale image of the face image area in the current picture is performed.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • a histogram equalization process is performed on the grayscale image of the face image region.
  • the processor is further configured to call the program code stored in the memory, and perform the following operations:
  • the face image area is scaled to obtain the coordinates of the face image area in the uncompressed current picture.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • the face detail image includes at least an eye, a mouth, and a nose
  • the face mask image includes a person other than at least including the eyes, the mouth, and the nose.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • a low-pass filtered image, a face mask image, and a high-pass filtered image are combined to obtain a beautified face mask image.
  • processor 86 is further configured to call the program code stored in the memory 85, and perform the following operations:
  • the face detail image is merged with the beautified face mask image to obtain a beautified face image area.
  • the embodiment of the invention provides an electronic device, which enhances the user experience by realizing face beautification in the instant video on the mobile terminal.
  • a facial landscaping system in an instant video provided by an embodiment of the present invention, the system comprising:
  • the first communication terminal is configured to acquire an instant video, and the first communication terminal includes at least a video input module.
  • Obtaining a device configured to obtain a face image area from a current picture of the instant video
  • a fusion device configured to fuse the beautified face image area and the face image area to generate a merged face image area
  • the second communication terminal includes at least a display module, configured to display a current picture including at least the merged face image area;
  • the storage device is configured to store a face image area, a beautified face image area, and a merged face image area.
  • the acquiring device, the beautifying device, the beautifying device, and the storage device may be separate devices, or may be integrated into other devices, which are not limited in the embodiment of the present invention.
  • the embodiment of the invention provides a face beautification system in real-time video, which achieves the user's experience effect by realizing the face beautification in the instant video on the mobile terminal.
  • the device and the device for detecting the location of the terminal provided by the foregoing embodiment are only illustrated by the division of the foregoing functional modules when detecting the location of the terminal. In actual applications, the functions may be allocated differently according to requirements.
  • the function module is completed, that is, the internal structure of the device and the device are divided into different functional modules to complete all or part of the functions described above.
  • the device and the device for detecting the location of the terminal provided by the foregoing embodiment are the same as the method for detecting the location of the terminal. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明公开了一种即时视频中的人脸美化方法和电子设备,属于图像处理领域,该方法包括:从即时视频的当前画面中获取人脸图像区域;对人脸图像区域进行美化,获取美化后的人脸图像区域;将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括融合后的人脸图像区域的当前画面。通过对即时视频中的人脸进行美化,并与之前的人脸区域进行融合,提高了即时视频的画面质量,增加了用户的体验效果。

Description

一种即时视频中的人脸美化方法和电子设备 技术领域
本发明涉及图像处理领域,特别涉及一种即时视频中的人脸美化方法和电子设备。
背景技术
随着即时视频应用在移动终端上的普及,使得越来越多的用户通过即时视频应用来实现与他人之间的交互,然而,由于移动终端设备的局限性以及交互场景摄像环境的影响,导致即时视频的质量较差,尤其是即时视频中的人脸画面质量较差,所以,需要提供一种即时视频中的人脸美化方法。
现有技术提供一种即时视频中的人脸美化方法,该方法具体包括:获取即时视频中的当前帧图像,对当前帧图像中的人脸进行美化,并利用美化后的当前帧图像替换原有的当前帧图像,对当前帧的下一帧图像继续执行上述步骤,从而实现即时视频中的人脸美化。
由于现有技术提供的方法算法复杂,对设备的硬件要求较高,而如智能手机和平板电脑等移动终端的硬件无法满足该方法的硬件要求,使得移动终端无法使用现有技术提供的方法进行即时视频中的人脸美化,或者,在移动终端使用现有技术提供的方法时,大量占用设备的处理资源和存储资源,影响设备的使用,从而降低了用户体验效果。
发明内容
为了在移动终端上实现即时视频中的人脸美化,增加用户的体验效果,本发明实施例提供了一种即时视频中的人脸美化方法和设备。所述技术方案如下:
第一方面,提供了一种即时视频中的人脸美化方法,所述方法包括:
从即时视频的当前画面中获取人脸图像区域;
对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括所述融合后的人脸图像区域的当前画面。
结合第一方面,在第一种可能的实现方式中,所述从即时视频的当前画面中获取人脸图像区域包括:
获取所述当前画面中的人脸图像区域的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域。
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获取所述当前画面中的人脸图像区域的灰度图像之前,所述方法还包括:
对所述当前画面进行压缩,在完成压缩后,执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
结合第一方面的第一种或第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述获取所述当前画面中的人脸图像区域的灰度图像之后,所述方法还包括:
对所述人脸图像区域的灰度图像进行直方图均衡化处理。
结合第一方面的第一种至第一方面的第三种任一可能的实现方式,在第四种可能的实现方式中,所述获取当前画面中的人脸图像区域之后,所述方法还包括:
对所述人脸图像区域进行缩放,获取所述人脸图像区域在未压缩的当前画面中的坐标。
结合第一方面至第一方面的第四种任一可能的实现方式,在第五种可能的实现方式中,对所述人脸图像区域进行美化包括:
对所述灰度图像中的人脸细节进行检测;
将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除至少包括眼睛、嘴和鼻子之外的人脸部分;
对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
结合第一方面的第五种可能的实现方式,在第六种可能的实现方式中,所述对所述人脸面具图像进行美化包括:
对所述人脸面具图像进行高斯滤波,获取反差图像;
对所述反差图像进行高斯滤波,获取低通滤波图像;
对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
结合第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述获取美化后的人脸图像区域包括:
根据所述人脸图像区域在未压缩的当前画面中的坐标,将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
第二方面,提供了一种电子设备,所述电子设备包括:
获取模块,用于从即时视频的当前画面中获取人脸图像区域;
美化模块,用于对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
融合模块,将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域;
显示模块,用于显示至少包括所述融合后的人脸图像区域的当前画面;
存储模块,所述存储模块用于存储所述人脸图像区域、美化后的人脸图像区域以及所述融合后的人脸图像区域。
结合第二方面,在第一种可能的实现方式中,所述获取模块具体用于:
获取所述当前画面中的人脸图像区域的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域;
所述存储模块还用于存储所述灰度图像。
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述设备还包括:
压缩模块,用于对所述当前画面进行压缩,在完成压缩后,触发所述获取模块执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
结合第二方面的第一种或第二方面的第二种可能的实现方式,在第三种可能的实现方式中,所述设备还包括:
处理模块,用于对所述人脸图像区域的灰度图像进行直方图均衡化处理。
结合第二方面的第一种至第二方面的第三种任一可能的实现方式,在第四种可能的实现方式中,所述压缩模块还用于对所述人脸图像区域进行缩放,所述获取模块还用于获取所述人脸图像区域在未压缩的当前画面中的坐标;
所述存储模块还用于存储所述坐标。
结合第二方面至第二方面的第四种任一可能的实现方式,在第五种可能的实现方式中,
所述设备还包括分离模块,用于将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除眼睛、嘴和鼻子之外的人脸部分;
所述美化模块用于对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
结合第二方面的第五种可能的实现方式,在第六种可能的实现方式中,
所述美化模块具体用于:
对所述人脸面具图像进行高斯滤波,获取反差图像;
对所述反差图像进行高斯滤波,获取低通滤波图像;
对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
所述融合模块用于融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
结合第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述融合模块用于:
将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
第三方面,提供了一种电子设备,包括视频输入模块、视频输出模块、发送模块、接收模块、存储器以及分别与所述视频输入模块、所述视频输出模块、所述发射模块、所述接收模块和所述存储器连接的处理器,其中,所述存储器中存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:
从即时视频的当前画面中获取人脸图像区域;
对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括所述融合后的人脸图像区域的当前画面。
结合第三方面,在第一种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
获取所述当前画面中的人脸图像区域的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域。
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
对所述当前画面进行压缩,在完成压缩后,执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
结合第三方面的第一种或第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
对所述人脸图像区域的灰度图像进行直方图均衡化处理。
结合第三方面的第一种至第三方面的第三种任一可能的实现方式,在第四种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
对所述人脸图像区域进行缩放,获取所述人脸图像区域在未压缩的当前画面中的坐标。
结合第三方面至第三方面的第四种任一可能的实现方式,在第五种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
对所述灰度图像中的人脸细节进行检测;
将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除至少包括眼睛、嘴和鼻子之外的人脸部分;
对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
结合第三方面的第五种可能的实现方式,在第六种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
对所述人脸面具图像进行高斯滤波,获取反差图像;
对所述反差图像进行高斯滤波,获取低通滤波图像;
对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
结合第三方面的第六种可能的实现方式,在第七种可能的实现方式中,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
本发明实施例提供了一种即时视频中的人脸美化方法和电子设备,该方法包括从即时视频的当前画面中获取人脸图像区域;对所述人脸图像区域进行美化,获取美化后的人脸图像区域;将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括所述融合后的人脸图像区域的当前画面。通过在移动终端上实现即时视频中的人脸美化,增加了用户的体验效果。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种交互***示意图;
图2是本发明实施例提供的一种交互***示意图;
图3是本发明实施例提供的一种即时视频中的人脸美化方法流程图;
图4是本发明实施例提供的一种即时视频中的人脸美化方法流程图;
图5是本发明实施例提供的一种即时视频中的人脸美化方法流程图;
图6是本发明实施例提供的一种即时视频中的人脸美化方法流程图;
图7是本发明实施例提供的一种电子设备结构示意图;
图8是本发明实施例提供的一种电子设备结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
本发明实施例提供了一种即时视频中的人脸美化方法,该方法应用于一种包括至少两个移动终端和服务器的交互***中,该交互***可以参照图1所示,其中,移动终端1为即时视频发送方,移动终端2为即时视频接收方,移动终端1所发送的即时视频经由服务器转发至移动终端2;其中,该移动终端可以是智能手机(Smart Phone),可以是平板电脑(Tablet Personal Computer),还可以是其他移动终端,本发明实施例对具体的移动终端不加以限定。移动终端至少包括视频输入模块和视频显示模块,视频输入模块可以包括摄像头,视频显示模块可以包括显示屏,且移动终端中至少可以运行一即时视频程序,该即时视频程序控制移动终端的视频输入模块和视频显示模块进行即时视频。
特别的,本发明实施例所提供的方法的执行主体,即电子设备,可以是移动终端1、移动终端2和服务器中的任意一个,若该方法的执行主体是移动终端1,则对该即时视频中的人脸进行美化,然后将美化后的即时视频发送至服务器,再由服务器发送至通讯设备2,由通讯设备2中的视频显示模块显示该美化后的即时视频;若该方法的执行主体是服务器,则移动终端1在通过自身的视频输入模块输入即时视频后,将该即时视频发送至服务器,由服务器对即时视频中的人脸进行美化,再将该美化后的人脸发送至移动终端2,由通讯设备2中的视频显示模块显示该美化后的即时视频;若该方法的执行主体是移动终端2,移动终端1在通过自身的视频输入模块输入即时视频后,将该即时视频发送至服务器,服务器将该即时视频发送至移动终端2,移动终端2对即时视频中的人脸进行美化,再通过自身的视频显示模块显示该美化后的即时视频。本发明实施例对该交互***中的该方法的具体的执行主体不加以限定。
除此之外,本发明实施例所提供的方法还可以应用于一种只包括移动终端1 和移动终端2的交互***中,该交互***可以参照图2所示,其中,移动终端1为即时视频发送方,移动终端2为即时视频接收方,且移动终端至少包括视频输入模块和视频显示模块,视频输入模块可以包括摄像头,视频显示模块可以包括显示屏,且移动终端中至少可以运行一即时视频程序,该即时视频程序控制移动终端的视频输入模块和视频显示模块进行即时视频。
特别的,本发明实施例所提供的方法的执行主体,即电子设备,可以是移动终端1和移动终端2中的任意一个,若该方法的执行主体是移动终端1,则该移动终端1在通过自身的视频输入模块输入即时视频之后,对该即时视频中的人脸进行美化,然后将美化后的即时视频发送至通讯设备2,由通讯设备2中的视频显示模块显示该美化后的即时视频;若该方法的执行主体是移动终端2,移动终端1在通过自身的视频输入模块输入即时视频后,将该即时视频发送至移动终端2,移动终端2对即时视频中的人脸进行美化,再通过自身的视频显示模块显示该美化后的即时视频。本发明实施例对该交互***中的该方法的具体的执行主体不加以限定。
实施例一
本发明实施例提供了一种即时视频中的人脸美化方法,该方法应用于上述任一交互***中,参见图3所示,该方法流程包括:
301、从即时视频的当前画面中获取人脸图像区域;
具体的,该步骤可以包括:
获取当前画面的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从灰度图像中,获取当前画面中的人脸图像区域。
可选的,获取当前画面中的人脸图像区域的灰度图像之前,还可以对当前画面进行压缩,在完成压缩后,再执行获取当前画面中的人脸图像区域的灰度图像的步骤。
可选的,获取当前画面中的人脸图像区域的灰度图像之后,还可以对人脸 图像区域的灰度图像进行直方图均衡化处理。
可选的,获取当前画面中的人脸图像区域之后,还可以对人脸图像区域进行缩放,获取人脸图像区域在未压缩的当前画面中的坐标。
302、对人脸图像区域进行美化,获取美化后的人脸图像区域;
具体的,将灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,人脸细节图像至少包括眼睛、嘴和鼻子,人脸面具图像包括除眼睛、嘴和鼻子之外的人脸部分;
对人脸面具图像进行美化,获取美化后的人脸面具图像。
其中,对人脸面具图像进行美化包括:
对人脸面具图像进行高斯滤波,获取反差图像;
对反差图像进行高斯滤波,获取低通滤波图像;
对低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
融合低通滤波图像、人脸面具图像以及高通滤波图像,获取美化后的人脸面具图像。
303、将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括融合后的人脸图像区域的当前画面。
具体的,根据人脸图像区域在未压缩的当前画面中的坐标,将人脸细节图像与美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
本发明实施例提供了一种即时视频中的人脸美化方法通过从即时视频的当前画面中获取人脸图像区域,对人脸图像区域进行美化,获取美化后的人脸图像区域,并将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域,显示至少包括融合后的人脸图像区域的当前画面。从而通过对即时视频中的人脸进行美化,并与之前的人脸区域进行融合,提高了即时视频的画面质量,增加了用户的体验效果。
实施例二
本发明实施例提供了一种即时视频中的人脸美化方法,参见图4所示,该方法流程包括:
401、获取当前画面中的人脸图像区域的灰度图像。
具体的,获取当前画面的灰度通道,通过该灰度通道获取当前画面中的人脸图像区域的灰度图像,并储存该灰度图像,其中,本发明实施例对具体的获取当前画面的灰度通道以及该灰度通道获取当前画面中的人脸图像区域的灰度图像的方式不加以限定。
由于相比于彩色图像,灰度图像的数据量较小,所以通过获取当前画面中的人脸图像区域的灰度图像并进行美化,可以减少人脸美化过程中的数据处理量,节省存储内存,提高人脸美化效率。
402、根据人脸框大小、人脸像素距离和搜索缩放因子,从灰度图像中获取当前画面中的人脸图像区域。
具体的,人脸框大小可以用min objectSize表示,且该min objectSize可以为至少长度和宽度的矩阵,该矩阵可以为:[长度,宽度]T,长度和宽度分别可以为正有理数;人脸像素距离可以用min neighbor表示,且该min neighbor可以为自然数;搜索缩放因子可以用ScaleFactor表示,且该ScaleFactor可以为正有理数,其中,人脸框大小用于指示该灰度图像的长度和宽度;人脸像素距离用于指示在该灰度图像中最近的人脸画面的个数,若灰度图像中只有一张人脸,则人脸像素距离为1,若灰度图像中有两张人脸,则人脸像素距离为2,并以此类推;搜索缩放因子用于指示在进行人脸检测时对灰度图像的缩放比例。
优选的,在实际应用中,可以设置min objectSize=[40,40]T,min neighbor=2,ScaleFactor=1.2。
通过人脸框大小、人脸像素距离和搜索缩放因子从灰度图像中获取当前画面中的人脸图像区域,使得获取的人脸图像区域至少包括当前用户的人脸,可以提高人脸图像区域获取的准确性,从而实现了人脸美化的可靠性。同时,在 获取人脸图像区域的过程中,通过搜索缩放因子对该灰度图像进行缩放,可以减少获取人脸图像区域的过程中的数据处理量,降低了对设备的硬件要求,使得可以在移动终端上使用该方法进行即时视频中的人脸美化,并且可以提高移动终端上人脸美化效率。
值得注意的是,步骤401至步骤402是从即时视频的当前画面中获取人脸图像区域的过程,除了上述过程之外,还可以通过其他方式从即时视频的当前画面中获取人脸图像区域,本发明实施例对具体的获取过程不加以限定。
403、对人脸图像区域进行缩放,获取人脸图像区域在未压缩的当前画面中的坐标。
具体的,根据缩放比例计算公式对灰度图像进行缩放,缩放比例计算公式可以为:
Figure PCTCN2015098355-appb-000001
其中,width表示该人脸图像区域的宽度,height表示该人脸图像区域的高度。
在完成缩放后,获取该人脸图像区域在未压缩的画面图像中的坐标,记为[x,y],并且[x,y]∈R2,并存储该坐标。
可选的,该步骤还可以包括对输出的人脸图像区域进行缩放,使该人脸图像区域在一个矩形范围内,其中,矩形范围是为了减少人脸美化过程中的运算量。具体的缩放过程可以为:
设置缩放比例为[a1,a2]∈R2,其中,a1表示宽度,a2表示高度,且a1和a2分别为正有理数,优选的,在实际应用中,可以设置a1的值为1.1,a2的值为1.05;
根据该缩放比例进行缩放。
在步骤403之后,还需要存储该灰度图像,具体的存储过程可以为:
根据人脸坐标[x,y,width,heigth]T分配新的内存,内存的大小与人脸的高宽一致,将上述检测出的人脸图像区域复制到新分配的内存中;
可选的,如果有多个人脸,重复该步骤,并存储新的人脸队列,该人脸队 列是指人脸的个数,当有一个人脸,队列的长度为1,假设有n个人脸,则队列的长度为n。
404、将灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,人脸细节图像至少包括眼睛、嘴和鼻子,人脸面具图像包括除包括眼睛、嘴和鼻子之外的人脸部分;
具体的,该过程可以为:
a、计算该灰度图像的直方图;
b、找到该直方图的近似谷点,并设置其相应的灰度级别为全局阀值;
c、根据该全局阀值对人脸图像进行分段;
其中,获取该人脸图像的眉毛、眼睛、鼻子和嘴巴在直方图中的取值,该取值在该直方图的近似谷点的左边,获取该人脸图像的皮肤在直方图中的取值,该取值在该近似谷点的右边,通过该直方图的该近似谷点,可以将人脸图像的眉毛、眼睛、鼻子和嘴巴的人脸细节和人脸皮肤进行分类。
值得注意的是,经过该步骤的分离,获得的人脸细节包括眉毛、眼睛、鼻子和嘴巴是需要保留原始图像的,获得该人脸的皮肤是要进行美化的,
其中,人脸面具图像包括除眼睛、嘴和鼻子之外的人脸部分。
d、获取二进制图像,其非零像素用于指明该二进制图像的细节;
具体的,根据步骤c中获得直方图的近似谷点,将该谷点右边的人脸面具对应的位置的取值为0,将该谷点左边的人脸面具对应位置的取值为1或与0不同的数值,此处不加以限定;
其中,在图像中眼睛、嘴巴等细节的亮度是要比皮肤暗的,皮肤是比较亮的,所以,变化的谷点就是皮肤和眼睛嘴巴等细节的分类的选择点。
e、存储该人脸细节和该二进制人脸面具图像。
通过获取该灰度图像的直方图,获取该直方图的近似谷点,并将该近似谷点作为进行全局阈值分割的分割阈值,使得将人脸图像中的人脸细节和人脸面具分离,从而保留该人脸细节,同时获得了人脸面具,提高了移动终端上人脸 美化的效率。
405、对人脸面具图像进行美化,获取美化后的人脸面具图像。
具体的,该过程可以为:
a、获取人脸面具图像的三原色通道;
其中,三原色通道包括红色通道、黄色通道和蓝色通道,例如,获取该人脸面具的蓝色通道,也可以为红色通道和黄色通道,此处不加以限定,下面以蓝色通道为例,说明人脸面具美化的过程,
b、对人脸面具图像进行高斯滤波,获取反差图像;
其中,示例性的,可以通过蓝色通道对该人脸面具进行高斯滤波,生成反差图像,在高斯滤波过程中,设置滤波半径为[b1,b2]T,并通过以下公式进行高斯滤波:
contrast Im age=GaussianFilter-Original+A1
在该公式中,GaussianFilter为高斯滤波后的图像,Original为原始图像,A1为位移,且A1为正整数。
其中,b1和b2分别正整数,优选的,在实际应用中,可以设置b1=b2=31,A1=127;
c、对反差图像进行高斯滤波,获取低通滤波图像;
其中,可以利用高斯滤波对反差图像进行处理,滤波半径为[c1,c2]T,c1和c2分别为正整数,优选的,在实际应用中,可以设置c1=c2=11;
根据反差图像对原始图像进行处理,反差大的保留原始图,反差小的保留高斯滤波后的反差图像。
d、对低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
具体的,可以利用一下公式进行对比度调整:
Figure PCTCN2015098355-appb-000002
其中
Figure PCTCN2015098355-appb-000003
d1、d2和d3分别为正有理数,优选的,在实际应用中,可以设置d1=2,d2=255,d3=128;
除此之外,还可以使用拉格朗日插值法对图像的亮度进行调整,参数为:
Figure PCTCN2015098355-appb-000004
其中,e1、e2、e3和e4分别为正有理数,优选的,是实际应用中,可以设置e1=0.76,e2=e4=255,e3=0.85
获取并存储该低通滤波图。
e、对调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
其中,复制第一人脸美化图像区域到新的内存,使用拉普拉斯滤波对图像进行滤波,得到高通细节,获取高通滤波图,并存储该高通滤波图;
此处对滤波的方式不加以限定,也可以使用canny等其他的高通图的滤波方式。
获取并存储该高通滤波图。
f、融合低通滤波图像、人脸面具图像以及高通滤波图像,获取美化后的人脸面具图像。
具体的,对高通滤波图像、人脸面具图像、低通滤波图像进行融合,计算公式为:
Figure PCTCN2015098355-appb-000005
其中,FaceArea为人脸图像区域,Lowpass为低通滤波图,Highpass为高通滤波图,且f1为正整数,优选的,在实际应用中,可以设置f1=255。
g、融合低通滤波图像、人脸面具图像以及高通滤波图像,获取美化后的人脸面具图像。
其中,步骤404至步骤405是对人脸图像区域进行美化的过程,除上述过程外,还可以通过其他方式对人脸图像区域进行美化,本发明实施例对具体的美化方式不加以限定。
406、根据人脸图像区域在未压缩的当前画面中的坐标,将人脸细节图像与美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
具体的,在人脸图像区域在未压缩的当前画面中的坐标的基础上,的人脸细节图像与美化后的人脸面具图进行融合,计算公式为:
如果人脸面具图mask=255,
Figure PCTCN2015098355-appb-000006
否则,
Figure PCTCN2015098355-appb-000007
其中,FaceArea为步骤中获得的人脸区域,dealedface为步骤S8中获得的图像,Output为美化后的人脸图像区域,
Figure PCTCN2015098355-appb-000008
Figure PCTCN2015098355-appb-000009
为0和1之间的有理数,优选的,在实际应用中,可以设置
Figure PCTCN2015098355-appb-000010
可选的,在步骤401之前,还可以执行步骤407,参照图5所示,
407、对当前画面进行压缩。
具体的,对当前画面的人脸图像区域进行取样,并将该区域进行缩放,缩放计算公式为:
Figure PCTCN2015098355-appb-000011
其中,width表示该当前画面的宽度,height表示该人脸图像区域的高度。
该步骤中取样的方式为图像的直接下采样或者使用双线性插值法,或者其他方式,此处不加以限定。
通过将该当前画面的人脸图像区域进行缩放,使得该当前画面的人脸图像区域归一化,从而可以控制算法的复杂度,使之不会因为图像的分辨率的变大而变大,从而减少了运算量,使得可以在移动终端上实现即时视频中的人脸美化,从而提高了人脸美化的效率。
可选的,在步骤401之前,还可以执行步骤408,参照图6所示,
408、对人脸图像区域的灰度图像进行直方图均衡化处理。
具体的,对人脸图像区域的灰度图像进行直方图均衡化处理,获取该直方图均衡化处理,并储存该直方图均衡化数据。
通过将该人脸图像区域的灰度图像进行直方图均衡化处理,可以排除光照对人脸检测的干扰,提高了移动终端上人脸美化的可靠性。
由于本发明实施例所提供的即时视频中的人脸美化方法,通过对即时视频中的人脸图像进行缩放,减少了人脸美化过程中的数据处理量,同时控制了算法的复杂度,不仅使得移动终端的硬件可以满足人脸美化时的硬件要求,还避免了在人脸美化过程中对设备的处理资源和存储资源的大量占用,提高了用户体验效果。
本发明实施例提供了一种即时视频中的人脸美化方法,通过在移动终端上实现即时视频中的人脸美化,增加了用户的体验效果;同时,通过人脸图像区域的灰度图像进行直方图均衡化处理,提高了移动终端上人脸美化的可靠性,且通过控制算法的复杂度,提高了移动终端上人脸美化的效率。
实施例三
本发明实施例提供一种电子设备7,参照图7所示,该电子设备7包括:
获取模块71,用于从即时视频的当前画面中获取人脸图像区域;
美化模块72,用于对人脸图像区域进行美化,获取美化后的人脸图像区域;
融合模块73,将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域;
显示模块74,用于显示至少包括融合后的人脸图像区域的当前画面;
存储模块75,存储模块用于存储人脸图像区域、美化后的人脸图像区域以及融合后的人脸图像区域。
可选的,获取模块71具体用于:
获取当前画面中的人脸图像区域的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从灰度图像中获取当前画面中的人脸图像区域;
存储模块还用于存储灰度图像。
可选的,电子设备7还包括:
压缩模块,用于对当前画面进行压缩,在完成压缩后,触发获取模块执行获取当前画面中的人脸图像区域的灰度图像的步骤。
可选的,电子设备7还包括:
处理模块,用于对人脸图像区域的灰度图像进行直方图均衡化处理。
可选的,
压缩模块还用于对人脸图像区域进行缩放,获取模块还用于获取人脸图像区域在未压缩的当前画面中的坐标;
存储模块还用于存储坐标。
可选的,
电子设备7还包括检测模块,用于对灰度图像中的人脸细节进行检测;
电子设备7还包括分离模块,用于将灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,人脸细节图像至少包括眼睛、嘴和鼻子,人脸面具图像包括除眼睛、嘴和鼻子之外的人脸部分;
美化模块72用于对人脸面具图像进行美化,获取美化后的人脸面具图像。
可选的,美化模块具体用于:
对人脸面具图像进行高斯滤波,获取反差图像;
对反差图像进行高斯滤波,获取低通滤波图像;
对低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
融合模块73用于融合低通滤波图像、人脸面具图像以及高通滤波图像,获取美化后的人脸面具图像。
可选的,融合模块73用于:
将人脸细节图像与美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
本发明实施例提供了一种电子设备,该电子设备通过在移动终端上实现即时视频中的人脸美化,增加了用户的体验效果。
实施例四
本发明实施例提供一种电子设备,参照图8所示,该电子设备8包括视频输入模块81、视频输出模块82、发送模块83、接收模块84、存储器85以及分别与视频输入模块、视频输出模块、发送模块、接收模块和存储器连接的处理器86,其中,存储器85中存储一组程序代码,处理器86用于调用存储器85中存储的程序代码,执行以下操作:
从即时视频的当前画面中获取人脸图像区域;
对人脸图像区域进行美化,获取美化后的人脸图像区域;
将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括融合后的人脸图像区域的当前画面。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
获取当前画面中的人脸图像区域的灰度图像;
根据人脸框大小、人脸像素距离和搜索缩放因子,从灰度图像中获取当前画面中的人脸图像区域。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
对当前画面进行压缩,在完成压缩后,执行获取当前画面中的人脸图像区域的灰度图像的步骤。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
对人脸图像区域的灰度图像进行直方图均衡化处理。
可选的,处理器还用于调用存储器中存储的程序代码,执行以下操作:
对人脸图像区域进行缩放,获取人脸图像区域在未压缩的当前画面中的坐标。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
对灰度图像中的人脸细节进行检测;
将灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,人脸细节图像至少包括眼睛、嘴和鼻子,人脸面具图像包括除至少包括眼睛、嘴和鼻子之外的人脸部分;
对人脸面具图像进行美化,获取美化后的人脸面具图像。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
对人脸面具图像进行高斯滤波,获取反差图像;
对反差图像进行高斯滤波,获取低通滤波图像;
对低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
对调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
融合低通滤波图像、人脸面具图像以及高通滤波图像,获取美化后的人脸面具图像。
可选的,处理器86还用于调用存储器85中存储的程序代码,执行以下操作:
将人脸细节图像与美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
本发明实施例提供了一种电子设备,该电子设备通过在移动终端上实现即时视频中的人脸美化,增加了用户的体验效果。
实施例五
本发明实施例提供的一种即时视频中的人脸美化***,该***包括:
第一通信终端,用于获取即时视频,第一通信终端至少包括视频输入模块。
获取设备,用于从即时视频的当前画面中获取人脸图像区域;
美化设备,用于对人脸图像区域进行美化,获取美化后的人脸图像区域;
融合设备,用于将美化后的人脸图像区域与人脸图像区域进行融合,生成融合后的人脸图像区域;
第二通信终端,至少包括显示模块,用于显示至少包括融合后的人脸图像区域的当前画面;
存储设备,用于存储人脸图像区域、美化后的人脸图像区域以及融合后的人脸图像区域。
值得注意的是,获取设备、美化设备、美化设备以及存储设备可以是单独的设备,也可以是集成在其他设备中,本发明实施例不加以限定。
本发明实施例提供了一种即时视频中的人脸美化***,通过在移动终端上实现即时视频中的人脸美化,增加了用户的体验效果。
需要说明的是:上述实施例提供的检测终端位置的装置及设备在检测终端位置时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置及设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的检测终端位置的装置及设备与检测终端位置的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的 保护范围之内。

Claims (24)

  1. 一种即时视频中的人脸美化的方法,其特征在于,所述方法包括:
    从即时视频的当前画面中获取人脸图像区域;
    对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
    将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括所述融合后的人脸图像区域的当前画面。
  2. 根据权利要求1所述的方法,其特征在于,所述从即时视频的当前画面中获取人脸图像区域包括:
    获取所述当前画面中的人脸图像区域的灰度图像;
    根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域。
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述当前画面中的人脸图像区域的灰度图像之前,所述方法还包括:
    对所述当前画面进行压缩,在完成压缩后,执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
  4. 根据权利要求2或3所述的方法,其特征在于,所述获取所述当前画面中的人脸图像区域的灰度图像之后,所述方法还包括:
    对所述人脸图像区域的灰度图像进行直方图均衡化处理。
  5. 根据权利要求2至4任一所述的方法,其特征在于,所述获取当前画面中的人脸图像区域之后,所述方法还包括:
    对所述人脸图像区域进行缩放,获取所述人脸图像区域在未压缩的当前画面中的坐标。
  6. 根据权利要求1至5任一所述的方法,其特征在于,对所述人脸图像区域进行美化包括:
    对所述灰度图像中的人脸细节进行检测;
    将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除至少包括眼睛、嘴和鼻子之外的人脸部分;
    对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
  7. 根据权利要求6所述的方法,其特征在于,所述对所述人脸面具图像进行美化包括:
    对所述人脸面具图像进行高斯滤波,获取反差图像;
    对所述反差图像进行高斯滤波,获取低通滤波图像;
    对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
    对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
    融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
  8. 根据权利要求7所述的方法,其特征在于,所述获取美化后的人脸图像区域包括:
    根据所述人脸图像区域在未压缩的当前画面中的坐标,将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
  9. 一种电子设备,其特征在于,所述设备包括:
    获取模块,用于从即时视频的当前画面中获取人脸图像区域;
    美化模块,用于对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
    融合模块,将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域;
    显示模块,用于显示至少包括所述融合后的人脸图像区域的当前画面;
    存储模块,所述存储模块用于存储所述人脸图像区域、美化后的人脸图像区域以及所述融合后的人脸图像区域。
  10. 根据权利要求9所述的设备,其特征在于,所述获取模块具体用于:
    获取所述当前画面中的人脸图像区域的灰度图像;
    根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域;
    所述存储模块还用于存储所述灰度图像。
  11. 根据权利要求10所述的设备,其特征在于,所述设备还包括:
    压缩模块,用于对所述当前画面进行压缩,在完成压缩后,触发所述获取模块执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
  12. 根据权利要求10或11所述的设备,其特征在于,所述设备还包括:
    处理模块,用于对所述人脸图像区域的灰度图像进行直方图均衡化处理。
  13. 根据权利要求10至12任一所述的设备,其特征在于,
    所述压缩模块还用于对所述人脸图像区域进行缩放,所述获取模块还用于获取所述人脸图像区域在未压缩的当前画面中的坐标;
    所述存储模块还用于存储所述坐标。
  14. 根据权利要求9至13任一所述的设备,其特征在于,
    所述设备还包括检测模块,用于对所述灰度图像中的人脸细节进行检测;
    所述设备还包括分离模块,用于将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除眼睛、嘴和鼻子之外的人脸部分;
    所述美化模块用于对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
  15. 根据权利要求14所述的设备,其特征在于,
    所述美化模块具体用于:
    对所述人脸面具图像进行高斯滤波,获取反差图像;
    对所述反差图像进行高斯滤波,获取低通滤波图像;
    对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波 图像;
    对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
    所述融合模块用于融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
  16. 根据权利要求15所述的设备,其特征在于,所述融合模块用于:
    将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
  17. 一种电子设备,其特征在于,包括视频输入模块、视频输出模块、发送模块、接收模块、存储器以及分别与所述视频输入模块、所述视频输出模块、所述发射模块、所述接收模块和所述存储器连接的处理器,其中,所述存储器中存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:
    从即时视频的当前画面中获取人脸图像区域;
    对所述人脸图像区域进行美化,获取美化后的人脸图像区域;
    将所述美化后的人脸图像区域与所述人脸图像区域进行融合,生成融合后的人脸图像区域,并显示至少包括所述融合后的人脸图像区域的当前画面。
  18. 根据权利要求17所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    获取所述当前画面中的人脸图像区域的灰度图像;
    根据人脸框大小、人脸像素距离和搜索缩放因子,从所述灰度图像中获取当前画面中的人脸图像区域。
  19. 根据权利要求18所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    对所述当前画面进行压缩,在完成压缩后,执行所述获取所述当前画面中的人脸图像区域的灰度图像的步骤。
  20. 根据权利要求18或19所述的电子设备,其特征在于,所述处理器还 用于调用所述存储器中存储的程序代码,执行以下操作:
    对所述人脸图像区域的灰度图像进行直方图均衡化处理。
  21. 根据权利要求18至20任一所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    对所述人脸图像区域进行缩放,获取所述人脸图像区域在未压缩的当前画面中的坐标。
  22. 根据权利要求17至21任一所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    对所述灰度图像中的人脸细节进行检测;
    将所述灰度图像中的人脸分离为人脸细节图像和人脸面具图像,其中,所述人脸细节图像至少包括眼睛、嘴和鼻子,所述人脸面具图像包括除至少包括眼睛、嘴和鼻子之外的人脸部分;
    对所述人脸面具图像进行美化,获取美化后的人脸面具图像。
  23. 根据权利要求22所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    对所述人脸面具图像进行高斯滤波,获取反差图像;
    对所述反差图像进行高斯滤波,获取低通滤波图像;
    对所述低通滤波图像进行对比度调整和亮度调整,获取调整后的低通滤波图像;
    对所述调整后的低通滤波图像进行高通滤波,获取高通滤波图像;
    融合所述低通滤波图像、所述人脸面具图像以及所述高通滤波图像,获取所述美化后的人脸面具图像。
  24. 根据权利要求23所述的电子设备,其特征在于,所述处理器还用于调用所述存储器中存储的程序代码,执行以下操作:
    将所述人脸细节图像与所述美化后的人脸面具图像进行融合,获得美化后的人脸图像区域。
PCT/CN2015/098355 2014-12-24 2015-12-23 一种即时视频中的人脸美化方法和电子设备 WO2016101883A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410840316.1 2014-12-24
CN201410840316.1A CN104574306A (zh) 2014-12-24 2014-12-24 一种即时视频中的人脸美化方法和电子设备

Publications (1)

Publication Number Publication Date
WO2016101883A1 true WO2016101883A1 (zh) 2016-06-30

Family

ID=53090287

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/098355 WO2016101883A1 (zh) 2014-12-24 2015-12-23 一种即时视频中的人脸美化方法和电子设备

Country Status (2)

Country Link
CN (1) CN104574306A (zh)
WO (1) WO2016101883A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107424130A (zh) * 2017-07-10 2017-12-01 北京小米移动软件有限公司 图片美颜方法和装置
CN111932442A (zh) * 2020-07-15 2020-11-13 厦门真景科技有限公司 一种基于人脸识别技术的视频美颜方法、装置、设备及计算机可读存储介质
CN113177526A (zh) * 2021-05-27 2021-07-27 中国平安人寿保险股份有限公司 基于人脸识别的图像处理方法、装置、设备及存储介质
US11210086B2 (en) 2014-07-18 2021-12-28 Ab Initio Technology Llc Managing parameter sets

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574306A (zh) * 2014-12-24 2015-04-29 掌赢信息科技(上海)有限公司 一种即时视频中的人脸美化方法和电子设备
CN104469253A (zh) * 2015-01-05 2015-03-25 掌赢信息科技(上海)有限公司 一种即时视频中的人脸美化方法和电子设备
CN104915981A (zh) * 2015-05-08 2015-09-16 寇懿 基于体感传感器的三维立体发型设计方法
CN106170069A (zh) * 2015-05-21 2016-11-30 华硕电脑股份有限公司 电子装置及非瞬时计算机可读取记录媒体
CN104952036B (zh) * 2015-06-18 2018-11-06 福州瑞芯微电子股份有限公司 一种即时视频中的人脸美化方法和电子设备
CN105007446A (zh) * 2015-06-18 2015-10-28 美国掌赢信息科技有限公司 一种即时视频的显示方法和电子设备
CN106920212A (zh) * 2015-12-24 2017-07-04 掌赢信息科技(上海)有限公司 一种发送风格化视频的方法及电子设备
CN105631417B (zh) * 2015-12-24 2018-11-09 武汉鸿瑞达信息技术有限公司 应用于互联网视频直播的视频美化***及方法
CN106920208A (zh) * 2015-12-24 2017-07-04 掌赢信息科技(上海)有限公司 一种基于图像处理的人脸风格化方法及电子设备
CN106921840B (zh) * 2015-12-25 2020-01-07 掌赢信息科技(上海)有限公司 一种即时视频中的人脸美化方法、设备及***
CN106028138A (zh) * 2016-07-22 2016-10-12 乐视控股(北京)有限公司 一种直播视频的处理方法及装置
CN106231367B (zh) * 2016-09-23 2020-03-06 广州华多网络科技有限公司 美颜处理方法及装置
CN106341672A (zh) * 2016-09-30 2017-01-18 乐视控股(北京)有限公司 图像处理方法、装置以及终端
CN106612396B (zh) * 2016-11-15 2020-06-16 努比亚技术有限公司 一种拍照装置、终端及方法
CN106971165B (zh) * 2017-03-29 2018-08-10 武汉斗鱼网络科技有限公司 一种滤镜的实现方法及装置
CN107045714A (zh) * 2017-05-11 2017-08-15 杭州知聊信息技术有限公司 一种用于实时视频通信的人脸美化算法
CN107392110A (zh) * 2017-06-27 2017-11-24 五邑大学 基于互联网的人脸美化***
CN108564633B (zh) * 2018-01-05 2022-03-22 珠海市杰理科技股份有限公司 灰度图像压缩方法、装置及计算机设备
CN108537155B (zh) * 2018-03-29 2021-01-26 Oppo广东移动通信有限公司 图像处理方法、装置、电子设备及计算机可读存储介质
CN108762829B (zh) * 2018-05-03 2021-07-09 北京奇虎科技有限公司 一种用于图像美化的方法、客户端及终端
JP2020136738A (ja) * 2019-02-13 2020-08-31 シャープ株式会社 画像処理装置、画像通信システムおよび画像処理方法
CN111131744B (zh) * 2019-12-26 2021-04-20 杭州当虹科技股份有限公司 一种基于视频通讯隐私保护的方法
CN112533024A (zh) * 2020-11-26 2021-03-19 北京达佳互联信息技术有限公司 一种人脸视频处理方法、装置及存储介质
CN113763286A (zh) * 2021-09-27 2021-12-07 北京市商汤科技开发有限公司 图像处理方法及装置、电子设备和存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060115172A1 (en) * 2004-11-30 2006-06-01 Qian Lin Face enhancement in a digital video
US20070041640A1 (en) * 2003-03-20 2007-02-22 Omron Corporation Image processing device
CN101299267A (zh) * 2008-07-02 2008-11-05 北京中星微电子有限公司 一种人脸图像处理方法及装置
CN101916370A (zh) * 2010-08-31 2010-12-15 上海交通大学 人脸检测中非特征区域图像处理的方法
CN103927719A (zh) * 2014-04-04 2014-07-16 北京金山网络科技有限公司 图片处理方法及装置
CN104318262A (zh) * 2014-09-12 2015-01-28 上海明穆电子科技有限公司 通过人脸照片更换皮肤的方法及***
CN104574306A (zh) * 2014-12-24 2015-04-29 掌赢信息科技(上海)有限公司 一种即时视频中的人脸美化方法和电子设备
CN104853134A (zh) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 一种视频通信方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070041640A1 (en) * 2003-03-20 2007-02-22 Omron Corporation Image processing device
US20060115172A1 (en) * 2004-11-30 2006-06-01 Qian Lin Face enhancement in a digital video
CN101299267A (zh) * 2008-07-02 2008-11-05 北京中星微电子有限公司 一种人脸图像处理方法及装置
CN101916370A (zh) * 2010-08-31 2010-12-15 上海交通大学 人脸检测中非特征区域图像处理的方法
CN104853134A (zh) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 一种视频通信方法及装置
CN103927719A (zh) * 2014-04-04 2014-07-16 北京金山网络科技有限公司 图片处理方法及装置
CN104318262A (zh) * 2014-09-12 2015-01-28 上海明穆电子科技有限公司 通过人脸照片更换皮肤的方法及***
CN104574306A (zh) * 2014-12-24 2015-04-29 掌赢信息科技(上海)有限公司 一种即时视频中的人脸美化方法和电子设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11210086B2 (en) 2014-07-18 2021-12-28 Ab Initio Technology Llc Managing parameter sets
CN107424130A (zh) * 2017-07-10 2017-12-01 北京小米移动软件有限公司 图片美颜方法和装置
CN111932442A (zh) * 2020-07-15 2020-11-13 厦门真景科技有限公司 一种基于人脸识别技术的视频美颜方法、装置、设备及计算机可读存储介质
CN113177526A (zh) * 2021-05-27 2021-07-27 中国平安人寿保险股份有限公司 基于人脸识别的图像处理方法、装置、设备及存储介质
CN113177526B (zh) * 2021-05-27 2023-10-03 中国平安人寿保险股份有限公司 基于人脸识别的图像处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN104574306A (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2016101883A1 (zh) 一种即时视频中的人脸美化方法和电子设备
US10580140B2 (en) Method and system of real-time image segmentation for image processing
CN105323425B (zh) 融合图像***中的场景运动校正
KR102277048B1 (ko) 미리보기 사진 블러링 방법 및 장치 및 저장 매체
JP7266672B2 (ja) 画像処理方法および画像処理装置、ならびにデバイス
EP2889832B1 (en) Image processing apparatus and method
EP3644599B1 (en) Video processing method and apparatus, electronic device, and storage medium
CN107771391B (zh) 用于确定图像帧的曝光时间的方法和装置
US20110148868A1 (en) Apparatus and method for reconstructing three-dimensional face avatar through stereo vision and face detection
CN108154514B (zh) 图像处理方法、装置及设备
US9342751B2 (en) User hand detecting device for detecting user's hand region and method thereof
WO2016110188A1 (zh) 一种即时视频中的人脸美化方法和电子设备
WO2021078001A1 (zh) 一种图像增强方法及装置
CN110062157B (zh) 渲染图像的方法、装置、电子设备和计算机可读存储介质
US10810462B2 (en) Object detection with adaptive channel features
CN111127303A (zh) 背景虚化方法、装置、终端设备及计算机可读存储介质
CN112016469A (zh) 图像处理方法及装置、终端及可读存储介质
KR20190096748A (ko) 외부 전자 장치를 이용한 이미지 보정 방법 및 전자 장치
CN108574803B (zh) 图像的选取方法、装置、存储介质及电子设备
CN112036209A (zh) 一种人像照片处理方法及终端
CN109981989B (zh) 渲染图像的方法、装置、电子设备和计算机可读存储介质
CN107578372B (zh) 图像处理方法、装置、计算机可读存储介质和电子设备
CN113658065A (zh) 图像降噪方法及装置、计算机可读介质和电子设备
CN113240598A (zh) 人脸图像去模糊方法、人脸图像去模糊装置、介质与设备
CN110047126B (zh) 渲染图像的方法、装置、电子设备和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871951

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.10.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15871951

Country of ref document: EP

Kind code of ref document: A1