CN107392841B - Method and device for eliminating black eye in face area and terminal - Google Patents

Method and device for eliminating black eye in face area and terminal Download PDF

Info

Publication number
CN107392841B
CN107392841B CN201710459552.2A CN201710459552A CN107392841B CN 107392841 B CN107392841 B CN 107392841B CN 201710459552 A CN201710459552 A CN 201710459552A CN 107392841 B CN107392841 B CN 107392841B
Authority
CN
China
Prior art keywords
black eye
area
face area
brightness information
pixel point
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.)
Active
Application number
CN201710459552.2A
Other languages
Chinese (zh)
Other versions
CN107392841A (en
Inventor
曾元清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710459552.2A priority Critical patent/CN107392841B/en
Publication of CN107392841A publication Critical patent/CN107392841A/en
Application granted granted Critical
Publication of CN107392841B publication Critical patent/CN107392841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T3/04
    • G06T5/94
    • 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

Abstract

The invention provides a method, a device and a terminal for eliminating black eye circles in a face area, wherein the method comprises the steps of obtaining a skin area of the face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area. The method and the device can effectively improve the elimination effect of the black eye circles and improve the visual impression of the picture.

Description

Method and device for eliminating black eye in face area and terminal
Technical Field
The invention relates to the technical field of image processing, in particular to a method, a device and a terminal for eliminating black eyes in a face area.
Background
With the development of image processing technology, the black eye area of the face in the picture needs to be eliminated.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for eliminating black eye in a face region, which can effectively improve the elimination effect of the black eye and improve the visual impression of a picture.
Another object of the present invention is to provide a device for eliminating dark circles in a face area.
The third purpose of the invention is to provide a device for eliminating the black eye in the face area.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
A fifth object of the invention is to propose a computer program product.
A sixth object of the present invention is to provide a terminal.
In order to achieve the above object, a method for eliminating a black eye in a face area according to an embodiment of a first aspect of the present invention includes: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
According to the method for eliminating the black eye in the face region provided by the embodiment of the first aspect of the invention, the skin region of the face region is obtained, the brightness information of each pixel point in the skin region is extracted, the black eye region is determined based on the brightness information of each pixel point, and the black eye region is eliminated based on the brightness information of the face region, so that the black eye in the face region is eliminated, the elimination effect of the black eye can be effectively improved, and the visual impression of the picture is improved.
In order to achieve the above object, an apparatus for eliminating black eye in a face region according to an embodiment of a second aspect of the present invention includes: the skin area acquisition module is used for acquiring a skin area of the face area; the black eye area determining module is used for extracting the brightness information of each pixel point in the skin area and determining a black eye area based on the brightness information of each pixel point; and the black eye removing module is used for removing the black eye area based on the brightness information of the face area so as to remove the black eye in the face area.
According to the device for eliminating the black eye in the face area provided by the embodiment of the second aspect of the invention, the skin area of the face area is obtained, the brightness information of each pixel point in the skin area is extracted, the black eye area is determined based on the brightness information of each pixel point, and the black eye area is eliminated based on the brightness information of the face area, so that the black eye in the face area is eliminated, the elimination effect of the black eye can be effectively improved, and the visual impression of the picture is improved.
In order to achieve the above object, a device for eliminating black eye in a face area according to a third embodiment of the present invention is characterized by comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
The device for eliminating the black eye in the face area provided by the embodiment of the third aspect of the invention extracts the brightness information of each pixel point in the skin area by acquiring the skin area of the face area, determines the black eye area based on the brightness information of each pixel point, and eliminates the black eye area based on the brightness information of the face area, so as to eliminate the black eye in the face area, thereby effectively improving the elimination effect of the black eye and improving the visual impression of the picture.
To achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to execute a method for eliminating black eye circles in a face area, the method including: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
The non-transitory computer-readable storage medium provided in the fourth aspect of the present invention extracts luminance information of each pixel point in the skin region by obtaining the skin region of the face region, determines the black eye region based on the luminance information of each pixel point, and performs elimination processing on the black eye region based on the luminance information of the face region, so as to eliminate the black eye in the face region, which can effectively improve the elimination effect of the black eye and improve the visual impression of the picture.
To achieve the above object, a fifth embodiment of the present invention provides a computer program product, wherein when instructions of the computer program product are executed by a processor, the computer program product executes a method for eliminating black eye circles in a face region, the method comprising: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
According to the computer program product provided by the embodiment of the fifth aspect of the invention, the skin area of the face area is obtained, the brightness information of each pixel point in the skin area is extracted, the black eye area is determined based on the brightness information of each pixel point, and the black eye area is eliminated based on the brightness information of the face area, so that the black eye in the face area is eliminated, the elimination effect of the black eye can be effectively improved, and the visual impression of the picture is improved.
In order to achieve the above object, a sixth aspect of the present invention further provides a terminal, which includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
According to the terminal provided by the embodiment of the sixth aspect of the invention, the skin area of the face area is obtained, the brightness information of each pixel point in the skin area is extracted, the black eye area is determined based on the brightness information of each pixel point, and the black eye area is eliminated based on the brightness information of the face area, so that the black eye in the face area is eliminated, the elimination effect of the black eye can be effectively improved, and the visual impression of the picture is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for eliminating a black eye in a face area according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for eliminating black eye in a face area according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an eye region in an embodiment of the invention;
FIG. 4 is a schematic diagram of a predetermined range including an eye region according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a method for eliminating black eye in a face area according to another embodiment of the present invention;
fig. 6 is a schematic flow chart of a method for eliminating black eye in a face area according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for eliminating black eye in a face area according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device for eliminating black eye in a face area according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a method for eliminating a black eye in a face area according to an embodiment of the present invention.
The embodiment of the invention can be applied to the process of beautifying the picture shot by the terminal by the user, or can also be applied to the process of beautifying the picture shot by the camera by the user, and the invention is not limited to this.
Further, the user can perform elimination processing on the black eye circles in the face area in the picture through an image beautification application program arranged in the terminal.
The application may refer to a software program running on an electronic device, such as a Personal Computer (PC), a cloud device or a mobile device, a mobile device such as a smart phone or a tablet Computer. The terminal may be a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, and an electronic book, which is not limited thereto.
The execution entity in the embodiment of the present invention may be, for example, a Central Processing Unit (CPU) of the terminal in terms of hardware, and may be, for example, a service related to image beautification in the terminal in terms of software, which is not limited to this.
Referring to fig. 1, the method includes:
s11: and acquiring a skin area of the human face area.
It can be understood that, in general, the luminance values of the teeth and the white eyes in the face area are larger than the luminance values of the skin area, and therefore, in the embodiment of the present invention, in order to avoid the influence of the teeth and the white eyes in the process of removing the black eye, the skin area of the face area may be extracted first, which can retain the detail information of the face area, reduce the amount of computation, and improve the elimination efficiency.
For example, a face recognition algorithm in the related art may be used to segment skin regions from face regions, which is not limited in this respect.
S12: and extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point.
Alternatively, referring to fig. 2, S12 may include:
s21: an eye region in the face region is determined.
In an embodiment of the invention, the eye region is an eye region.
Referring to fig. 3, fig. 3 is a schematic diagram of an eye region in an embodiment of the invention, including: the eye region 31.
By determining the eye area in the face area at first, the method can support the subsequent quick positioning of the black eye area based on the eye area without traversing the whole skin area to determine the black eye area, thereby effectively reducing the operation consumption of the terminal and improving the elimination efficiency.
S22: and determining at least one pixel point of which the brightness information is less than or equal to a preset brightness threshold value in all pixel points in the preset range including the eye region.
Wherein the preset range may be a range of regions where a human figure black eye may appear.
Further, the unit of the preset range may be the number of pixels. For example, the number of pixels included in the predetermined range including the eye area is 100, which is not limited thereto.
Further, the preset range may be preset by a factory program of the terminal, or the preset range may also be set by a provider of a related service for image beautification according to a requirement of the provider, so that flexibility of configuration of the method is effectively improved.
Referring to fig. 4, fig. 4 is a schematic diagram of a preset range including an eye region in an embodiment of the present invention, including: a preset range 41.
In the embodiment of the invention, the black eye area is determined in the preset range including the eye area, so that the operation consumption of the terminal is further effectively reduced, and the elimination efficiency is improved.
The preset brightness threshold value can be preset by a factory program of the terminal, or the preset brightness threshold value can also be set by a provider of related services of image beautification according to the requirements of the provider, so that the flexibility of configuration of the method is effectively improved.
Further, it can be understood that, since the luminance value of the black eye area is generally smaller than the luminance value of the non-black eye area, the black eye area can be determined by the luminance information of each pixel point in the preset range including the eye area.
Or, the black eye area may also be determined by the hue information of each pixel point in the preset range including the eye area.
Or, the black eye area may be determined by the saturation information of each pixel point in the preset range including the eye area, which is not limited.
In the embodiment of the invention, the black eye area is determined by adopting the brightness information of each pixel point in the preset range including the eye area, the method is simple and easy to implement, the collected brightness information has higher reference value, and the determined black eye area is more accurate.
S23: and determining a plurality of pixel points belonging to the same connected region in at least one pixel point.
S24: and taking the image areas corresponding to the plurality of pixel points as black eye areas.
The brightness information of each pixel point in the at least one pixel point is smaller than or equal to a preset brightness threshold value.
Every two pixel points in the at least one pixel point can be adjacent or not adjacent.
Based on the distribution characteristics of the black eye area, in the embodiment of the present invention, a plurality of pixel points belonging to the same connected area in at least one pixel point may be determined first, and then, a skin area where the plurality of pixel points are located is used as the black eye area.
One or more black eye areas can be determined based on the method, and the one or more black eye areas can be distributed dispersedly and have different sizes.
Optionally, referring to fig. 5, after the black eye area is determined, the method may further include:
s51: and carrying out smooth filtering processing on the black eye area.
In the embodiment of the invention, by performing smooth filtering processing on the black eye area, partial detail information of the black eye area can be recovered, and the elimination effect of the black eye area is further improved.
S13: and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
Optionally, the brightness information of the face region is: and the brightness mean value of all pixel points in the face area.
Optionally, referring to fig. 6, S13 may further include:
s61: and directly configuring the brightness information of each pixel point in the black eye area as a brightness mean value so as to eliminate the black eye in the face area.
Or, for each pixel point in the black eye area, the average value between the brightness value and the brightness mean value can be obtained, and then the brightness value of the pixel point is directly configured as the average value, which is not limited.
In the embodiment of the invention, the brightness information of each pixel point in the black eye area is directly configured to be the brightness mean value so as to eliminate the black eye in the face area, so that the brightness difference between the pixel point in the black eye area and the surrounding pixel points can be reduced, and the purpose of removing the black eye is achieved.
In the embodiment, through the skin area who obtains the face area, the luminance information of every pixel in the skin area is drawed to confirm black eye region based on the luminance information of every pixel, and eliminate the processing to black eye region based on the luminance information of face area, eliminate with black eye in the face area, can effectively promote the elimination effect of black eye, promote the visual impression of picture.
Fig. 7 is a schematic structural diagram of a device for eliminating black eye in a face area according to an embodiment of the present invention.
Referring to fig. 7, the apparatus 700 includes: a skin area acquisition module 701, a black eye area determination module 702, and a black eye elimination module 703, wherein,
a skin region obtaining module 701, configured to obtain a skin region of the face region.
A black eye region determining module 702, configured to extract luminance information of each pixel in the skin region, and determine a black eye region based on the luminance information of each pixel.
The black eye removing module 703 is configured to perform removal processing on the black eye area based on the brightness information of the face area, so as to remove the black eye in the face area.
Optionally, in some embodiments, the black eye area determining module 702 is specifically configured to:
determining an eye region in the face region;
determining at least one pixel point of which the brightness information is less than or equal to a preset brightness threshold value in all pixel points in a preset range including the eye region;
determining a plurality of pixel points belonging to the same connected region in at least one pixel point;
and taking the image areas corresponding to the plurality of pixel points as black eye areas.
Optionally, the brightness information of the face region is: and the brightness mean value of all pixel points in the face area.
Optionally, in some embodiments, the black eye elimination module 703 is specifically configured to:
and directly configuring the brightness information of each pixel point in the black eye area as a brightness mean value so as to eliminate the black eye in the face area.
Optionally, in some embodiments, referring to fig. 8, the apparatus 700 further comprises:
and a smoothing filter processing module 704, configured to perform smoothing filter processing on the black eye area.
It should be noted that the explanation of the embodiment of the method for eliminating the black eye in the face area in the foregoing fig. 1 to fig. 6 is also applicable to the device 700 for eliminating the black eye in the face area in the embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, through the skin area who obtains the face area, the luminance information of every pixel in the skin area is drawed to confirm black eye region based on the luminance information of every pixel, and eliminate the processing to black eye region based on the luminance information of face area, eliminate with black eye in the face area, can effectively promote the elimination effect of black eye, promote the visual impression of picture.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
The terminal can be a mobile phone, a tablet computer and the like.
Referring to fig. 9, the terminal 90 of the present embodiment includes: the device comprises a shell 901, a processor 902, a memory 903, a circuit board 904 and a power circuit 905, wherein the circuit board 904 is arranged in a space surrounded by the shell 901, and the processor 902 and the memory 903 are arranged on the circuit board 904; a power supply circuit 905 for supplying power to each circuit or device of the terminal 90; the memory 903 is used to store executable program code; wherein the processor 902 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 903, for executing:
acquiring a skin area of a face area;
extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point;
and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
It should be noted that the explanation of the embodiment of the black eye circle elimination method in the face area in the foregoing embodiments of fig. 1 to fig. 6 is also applicable to the terminal 90 of the embodiment, and the implementation principle is similar and is not described herein again.
The terminal in this embodiment, through the skin region that acquires the face region, extract the luminance information of every pixel in the skin region to confirm black eye region based on the luminance information of every pixel, and eliminate the processing to black eye region based on the luminance information of face region, eliminate with black eye in the face region, can effectively promote the elimination effect of black eye, promote the visual impression of picture.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to execute a method for eliminating black eye circles in a face region, the method comprising: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
The non-transitory computer-readable storage medium in this embodiment extracts luminance information of each pixel point in the skin region by acquiring the skin region of the face region, determines a black eye region based on the luminance information of each pixel point, and eliminates the black eye region based on the luminance information of the face region, so as to eliminate the black eye in the face region, thereby effectively improving the elimination effect of the black eye, and improving the visual impression of the picture.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, the computer program product executes a method for eliminating black eye in a face region, and the method includes: acquiring a skin area of a face area; extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point; and eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area.
The computer program product in the embodiment extracts the brightness information of each pixel point in the skin area by acquiring the skin area of the face area, determines the black eye area based on the brightness information of each pixel point, and eliminates the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area, so that the elimination effect of the black eye can be effectively improved, and the visual impression of the picture is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (6)

1. A method for eliminating black eye circles in a face area is characterized by comprising the following steps:
acquiring a skin area of a face area;
extracting the brightness information of each pixel point in the skin area, and determining a black eye area based on the brightness information of each pixel point;
carrying out smooth filtering processing on the black eye area;
removing the black eye area based on the brightness information of the face area so as to remove the black eye in the face area; the brightness information of the face area is the brightness average value of all pixel points in the face area;
determining a black eye area based on the brightness information of each pixel point comprises determining an eye area in the face area; determining at least one pixel point of which the brightness information is less than or equal to a preset brightness threshold value in all pixel points in a preset range including the eye region; determining a plurality of pixel points belonging to the same connected region in the at least one pixel point; and taking the image areas corresponding to the pixel points as the black eye areas.
2. The method for eliminating the black eye in the face area according to claim 1, wherein the eliminating the black eye area based on the brightness information of the face area to eliminate the black eye in the face area comprises:
and directly configuring the brightness information of each pixel point in the black eye area as the brightness mean value so as to eliminate the black eye in the face area.
3. A device for eliminating black eye in a human face area is characterized by comprising:
the skin area acquisition module is used for acquiring a skin area of the face area;
the black eye area determining module is used for extracting the brightness information of each pixel point in the skin area and determining a black eye area based on the brightness information of each pixel point;
the black eye area eliminating module is used for eliminating the black eye area based on the brightness information of the face area so as to eliminate the black eye in the face area; the brightness information of the face area is the brightness average value of all pixel points in the face area;
the smooth filtering processing module is used for carrying out smooth filtering processing on the black eye area;
the black eye region determining module is further used for determining an eye region in the face region; determining at least one pixel point of which the brightness information is less than or equal to a preset brightness threshold value in all pixel points in a preset range including the eye region; determining a plurality of pixel points belonging to the same connected region in the at least one pixel point; and taking the image areas corresponding to the pixel points as the black eye areas.
4. The apparatus for eliminating black eye in a human face region according to claim 3, wherein the black eye eliminating module is specifically configured to:
and directly configuring the brightness information of each pixel point in the black eye area as the brightness mean value so as to eliminate the black eye in the face area.
5. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of any one of claims 1-2.
6. A terminal comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any one of claims 1-2.
CN201710459552.2A 2017-06-16 2017-06-16 Method and device for eliminating black eye in face area and terminal Active CN107392841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710459552.2A CN107392841B (en) 2017-06-16 2017-06-16 Method and device for eliminating black eye in face area and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710459552.2A CN107392841B (en) 2017-06-16 2017-06-16 Method and device for eliminating black eye in face area and terminal

Publications (2)

Publication Number Publication Date
CN107392841A CN107392841A (en) 2017-11-24
CN107392841B true CN107392841B (en) 2020-04-24

Family

ID=60332287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710459552.2A Active CN107392841B (en) 2017-06-16 2017-06-16 Method and device for eliminating black eye in face area and terminal

Country Status (1)

Country Link
CN (1) CN107392841B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108320266A (en) * 2018-02-09 2018-07-24 北京小米移动软件有限公司 A kind of method and apparatus generating U.S. face picture
CN108830184B (en) * 2018-05-28 2021-04-16 厦门美图之家科技有限公司 Black eye recognition method and device
CN111241889B (en) * 2018-11-29 2023-05-12 荣耀终端有限公司 Method and device for detecting and evaluating dark circles
CN111814520A (en) * 2019-04-12 2020-10-23 虹软科技股份有限公司 Skin type detection method, skin type grade classification method, and skin type detection device
CN113673270B (en) * 2020-04-30 2024-01-26 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024035B1 (en) * 1999-09-07 2006-04-04 Fuji Photo Film Co., Ltd. Method of setting region to be subjected to red eye correction and red eye correcting method
CN102722872A (en) * 2012-05-30 2012-10-10 山东神思电子技术股份有限公司 Method for eliminating local highlight blooming of digital image
CN104574285A (en) * 2013-10-23 2015-04-29 厦门美图网科技有限公司 Method for automatically removing image black eyes
CN104809694A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Digital image processing method and digital image processing device
CN105719234A (en) * 2016-01-26 2016-06-29 厦门美图之家科技有限公司 Automatic gloss removing method and system for face area and shooting terminal
CN105913374A (en) * 2016-04-07 2016-08-31 广东欧珀移动通信有限公司 Image processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7024035B1 (en) * 1999-09-07 2006-04-04 Fuji Photo Film Co., Ltd. Method of setting region to be subjected to red eye correction and red eye correcting method
CN102722872A (en) * 2012-05-30 2012-10-10 山东神思电子技术股份有限公司 Method for eliminating local highlight blooming of digital image
CN104574285A (en) * 2013-10-23 2015-04-29 厦门美图网科技有限公司 Method for automatically removing image black eyes
CN104809694A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Digital image processing method and digital image processing device
CN105719234A (en) * 2016-01-26 2016-06-29 厦门美图之家科技有限公司 Automatic gloss removing method and system for face area and shooting terminal
CN105913374A (en) * 2016-04-07 2016-08-31 广东欧珀移动通信有限公司 Image processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
美图秀秀人像美容瞬间减龄十岁;无;《计算机与网络》;20121231(第22期);全文 *

Also Published As

Publication number Publication date
CN107392841A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107392841B (en) Method and device for eliminating black eye in face area and terminal
CN109146855B (en) Image moire detection method, terminal device and storage medium
US11151700B2 (en) Image processing method, terminal, and non-transitory computer-readable storage medium
KR20150099302A (en) Electronic device and control method of the same
CN107172354B (en) Video processing method and device, electronic equipment and storage medium
CN107690804B (en) Image processing method and user terminal
CN105243371A (en) Human face beauty degree detection method and system and shooting terminal
CN107909569B (en) Screen-patterned detection method, screen-patterned detection device and electronic equipment
CN110796600A (en) Image super-resolution reconstruction method, image super-resolution reconstruction device and electronic equipment
CN110264473B (en) Image processing method and device based on multi-frame image and electronic equipment
CN108776800B (en) Image processing method, mobile terminal and computer readable storage medium
CN107564085B (en) Image warping processing method and device, computing equipment and computer storage medium
CN112837251A (en) Image processing method and device
US20140092116A1 (en) Wide dynamic range display
CN109784327B (en) Boundary box determining method and device, electronic equipment and storage medium
EP2465095A1 (en) System and method for region-of-interest-based artifact reduction in image sequences
CN111198636A (en) Status bar display method, terminal and storage medium
CN113658065A (en) Image noise reduction method and device, computer readable medium and electronic equipment
JP5772446B2 (en) Image processing apparatus and image processing program
CN107392859B (en) Method and device for eliminating highlight area and terminal
CN113112422A (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN108769521B (en) Photographing method, mobile terminal and computer readable storage medium
CN107316281B (en) Image processing method and device and terminal equipment
CN107330866B (en) Method and device for eliminating highlight area and terminal
JP2012165224A (en) Image processing apparatus, electronic camera and image processing program

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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant