CN107644405A - Image processing method and device, electronic equipment and computer-readable recording medium - Google Patents
Image processing method and device, electronic equipment and computer-readable recording medium Download PDFInfo
- Publication number
- CN107644405A CN107644405A CN201710812114.XA CN201710812114A CN107644405A CN 107644405 A CN107644405 A CN 107644405A CN 201710812114 A CN201710812114 A CN 201710812114A CN 107644405 A CN107644405 A CN 107644405A
- Authority
- CN
- China
- Prior art keywords
- face
- beeline
- radius
- edge
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The disclosure is directed to a kind of image processing method, this method includes:Determine the edge of the structural region of face in image;Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein, the filter radius and the beeline inverse correlation;The pixel is carried out according to the filter radius to protect side filtering.In accordance with an embodiment of the present disclosure, because the filter radius to pixel filter and pixel are to the beeline inverse correlation at the edge in human face structure region, the edge clear of the structural region of face is thereby may be ensured that, and ensure to filter out the flaw in the non-structural region of face.
Description
Technical field
This disclosure relates to technical field of image processing, more particularly to image processing method, image processing apparatus, electronic equipment
And computer-readable recording medium.
Background technology
At present in electrophotographic process, the mill skin carried out for face is handled, and is mainly realized by filtering algorithm.
But the size of the micro-slip window employed in existing filtering algorithm is fixed, therefore for face
Different zones filter effect is identical, although this can realize the mill skin processing to the non-structural region of the faces such as cheek, forehead,
Be also can the structural region such as the nose of reciprocity face, lip carry out the mill skin processing of same effect.
So as to cause the edge of the structural region of face to thicken afterwards after filtering, the image after processing is influenceed
Bandwagon effect.
The content of the invention
The disclosure provides image processing method, image processing apparatus, electronic equipment and computer-readable recording medium, with solution
The certainly deficiency in correlation technique.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of image processing method, including:
Determine the edge of the structural region of face in image;
Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein,
The filter radius and the beeline inverse correlation;
The pixel is carried out according to the filter radius to protect side filtering.
Alternatively, in the case where the beeline is more than pre-determined distance, the filter radius is equal to pre-set radius;
In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the most short distance
From inverse correlation, and the filter radius is more than the pre-set radius.
Alternatively, in the case where the beeline is more than pre-determined distance T, the filter radius r=r0;
In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre-
If constant.
Alternatively, the edge for determining the structural region of face in image includes:
Detect the human face region in described image;
Position the face key point in the human face region;
The structural region of face is determined according to the face key point;
Rim detection is carried out to the structural region of the face, to determine the edge of the structural region of the face.
Alternatively, the structural region of the face includes at least one of:
Face, eyes, eyebrow, lip, nose, ear.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of image processing apparatus, including:
Edge determining module, it is configured to determine that the edge of the structural region of face in image;
Radius setup module, the pixel in described image is configured as to the beeline at the edge, institute is set
The filter radius of pixel is stated, wherein, the filter radius and the beeline inverse correlation;
Filtration module, it is configured as that the pixel is carried out according to the filter radius to protect side filtering.
Alternatively, in the case where the beeline is more than pre-determined distance, the filter radius is equal to pre-set radius;
In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the most short distance
From inverse correlation, and the filter radius is more than the pre-set radius.
Alternatively, in the case where the beeline is more than pre-determined distance T, the filter radius r=r0;
In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre-
If constant.
Alternatively, the edge determining module includes:
Detection sub-module, it is configured as detecting the human face region in described image;
Submodule is positioned, is configured as positioning the face key point in the human face region;
Determination sub-module, it is configured as determining the structural region of face according to the face key point;
Detection sub-module, it is configured as carrying out rim detection to the structural region of the face, to determine the face
The edge of structural region.
Alternatively, the structural region of the face includes at least one of:
Face, eyes, eyebrow, lip, nose, ear.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Determine the edge of the structural region of face in image;
Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein,
The filter radius and the beeline inverse correlation;
The pixel is carried out according to the filter radius to protect side filtering.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating
Machine program, the program realize following steps when being executed by processor:
Determine the edge of the structural region of face in image;
Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein,
The filter radius and the beeline inverse correlation;
The pixel is carried out according to the filter radius to protect side filtering.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In accordance with an embodiment of the present disclosure, due to the edge of the filter radius to pixel filter and pixel to human face structure region
Beeline inverse correlation.Namely the smaller pixel of beeline at the edge to human face structure region, place is filtered to it
During reason, filter radius is bigger, and filter radius is bigger, and filter effect is weaker, the picture being near the structural region of face
For element, mill bark effect is weaker, thereby may be ensured that the edge clear of the structural region of face.Such as ensure face, eyes, eyebrow
Hair, lip, nose, the edge clear of ear.
And the bigger pixel of beeline at the edge to human face structure region, when being filtered processing to it, filtering half
Footpath is smaller, and filter radius is smaller, and filter effect is stronger, is for for the pixel of non-structural areas adjacent of face, mill
Bark effect is stronger, thereby may be ensured that the flaw in the non-structural region for filtering out face.Such as filter out the flaw in the regions such as cheek, forehead
Defect.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of schematic flow diagram of image processing method according to an exemplary embodiment.
Fig. 2 is a kind of face key point schematic diagram according to an exemplary embodiment.
Fig. 3 is a kind of line schematic diagram of face key point according to an exemplary embodiment.
Fig. 4 is that a kind of line to face key point according to an exemplary embodiment carries out morphological dilation operation
Schematic diagram.
Fig. 5 is a kind of edge schematic diagram of the structural region of face according to an exemplary embodiment.
Fig. 6 is a kind of filter effect schematic diagram according to an exemplary embodiment.
Fig. 7 is the exemplary flow at the edge of the structural region of face in determination image according to an exemplary embodiment
Figure.
Fig. 8 is a kind of schematic block diagram of image processing apparatus according to an exemplary embodiment.
Fig. 9 is a kind of schematic block diagram of edge determining module according to an exemplary embodiment.
Figure 10 is a kind of schematic block diagram of device for image procossing according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic flow diagram of image processing method according to an exemplary embodiment.The present embodiment institute
The method shown can apply to camera, video camera, can also be applied to mobile phone, tablet personal computer etc. and possess image collecting function
Electronic equipment.
As shown in figure 1, described image processing method comprises the following steps.
In step s 11, the edge of the structural region of face in image is determined.
In one embodiment, when getting image, human face region that can be in first detection image, namely determine face
The position of region in the picture, such as can be determined by Adaboost, faster-rcnn scheduling algorithm.
Fig. 2 is a kind of face key point schematic diagram according to an exemplary embodiment.
In one embodiment, after the human face region in detecting image, can be closed with the face in locating human face region
Key point, as shown in Fig. 2 the face key point include facial contour, eye contour, eyebrow outline, lip outline, nose profile,
Point on the profiles such as eye contour, wherein it is possible to using AAM (Active Appearance Model, active appearance models),
SDM (supervised descent method, supervise descent method) or CNN (Convolutional Neural Network,
Convolutional neural networks) scheduling algorithm determines above-mentioned face key point.
Fig. 3 is a kind of line schematic diagram of face key point according to an exemplary embodiment.Fig. 4 is shown according to one
A kind of line to face key point that example property is implemented to exemplify carries out the schematic diagram of morphological dilation operation.
In one embodiment, it is determined that after face key point, line, such as Fig. 3 institutes can be carried out to face key point
Show, the face key point shown in Fig. 2 can be directed to and carry out line.Then morphological dilation operation, such as Fig. 4 institutes are done to line
Show, the line shown in Fig. 3 can be directed to and carry out morphological dilation operation, and then determine the structural region of face, such as face, eye
Eyeball, eyebrow, lip, nose, ear.
Fig. 5 is a kind of edge schematic diagram of the structural region of face according to an exemplary embodiment.
In one embodiment, rim detection can be carried out to the structural region of face, such as is carried out by canny operators
Rim detection, and then the edge in human face structure region is determined, such as enter for the structural region of the face in embodiment illustrated in fig. 4
Row rim detection, then it is determined that edge it is as shown in Figure 5.
In step s 12, the pixel in described image sets the filter of the pixel to the beeline at the edge
Ripple radius, wherein, the filter radius and the beeline inverse correlation.
In one embodiment, processing is filtered to the pixel in image according to filtering algorithm, it is necessary to be directed to pixel structure
Window is built, such as 3 including 9 pixels multiply 3 windows, need to be filtered the pixel of processing positioned at window center, filter
Radius then refers to pixel positioned at window center to the poor number of pixels of window edge pixel, for example, for 3 multiply 3 windows and
Speech, the pixel of window center differ 1 pixel to window edge pixel, then filter radius is 1.
In step s 13, the pixel is carried out according to the filter radius protecting side filtering.Wherein, protecting side filtering can be with
Including the filtering process mode such as Steerable filter, bilateral filtering.
Because window is smaller, namely filter radius is smaller, then filter effect is stronger, is for for image, grinds skin
Effect is stronger, and the flaw in image on face is fewer, and the edge of the structural region of corresponding face is also fuzzyyer.
And according to the present embodiment, due to the filter radius to pixel filter and pixel to human face structure region edge most
Short distance inverse correlation.Namely the smaller pixel of beeline at the edge to human face structure region, when being filtered processing to it,
Filter radius is bigger, and filter radius is bigger, and filter effect is weaker, the pixel being near the structural region of face and
Speech, mill bark effect is weaker, thereby may be ensured that the edge clear of the structural region of face.Such as ensure face, eyes, eyebrow,
Lip, nose, the edge clear of ear.
And the bigger pixel of beeline at the edge to human face structure region, when being filtered processing to it, filtering half
Footpath is smaller, and filter radius is smaller, and filter effect is stronger, is for for the pixel of non-structural areas adjacent of face, mill
Bark effect is stronger, thereby may be ensured that the flaw in the non-structural region for filtering out face.Such as filter out the flaw in the regions such as cheek, forehead
Defect.
Fig. 6 is a kind of filter effect schematic diagram according to an exemplary embodiment.
Such as the image of before processing shown in Fig. 6 is handled according to the method for the present embodiment, then after obtained processing
Image, not only the flaw in the non-structural region of the face such as forehead, cheek be removed, it is ensured that face, eyes, eyebrow, mouth
The edge clear of the structural region of the faces such as lip, nose, ear.
Alternatively, in the case where the beeline is more than pre-determined distance, the filter radius is equal to pre-set radius;
In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the most short distance
From inverse correlation, and the filter radius is more than the pre-set radius.
In one embodiment, only need to be by the structural region of face in order to ensure the edge clear of the structural region of face
Larger, and the pixel for the structural region apart from face farther out of the filter radius adjustment of neighbouring pixel, then can be with
All the time it is filtered using a less filter radius.
In one embodiment, a filter radius, namely pre-set radius can be preset.For the structure to face
The beeline at the edge in region is more than the pixel of pre-determined distance, processing can be filtered to it according to pre-set radius, so as to
Pixel all in face need not be directed to, all adjusts filter radius, and need to only be directed to the picture nearer apart from the structural region of face
Element just expands filter radius, is advantageous to simplify the calculating process of filtering algorithm.
Alternatively, in the case where the beeline is more than pre-determined distance T, the filter radius r=r0;
In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre-
If constant.
In one embodiment, for different pixels, beeline dist can be different, can be somebody's turn to do by calculating
Pixel is less than or equal to pre-determined distance to the distance at the edge of the structural region of all faces it is then determined that wherein whether there is
Distance, if in the presence of, determine these distance in minimum range, the dist as the pixel.
In one embodiment, the filter radius in the case of beeline is less than or equal to pre-determined distance T, than most short distance
It is big from the filter radius in the case of more than pre-determined distance TWherein, preset constant r1Can be as needed
Adjustment, if requiring higher for the definition at the edge of the structural region of face, then r1What can be set is larger, if for people
The definition at the edge of the structural region of face requires relatively low, then r1What can be set is smaller.
Fig. 7 is the exemplary flow at the edge of the structural region of face in determination image according to an exemplary embodiment
Figure.As shown in fig. 7, on the basis of embodiment illustrated in fig. 1, the edge for determining the structural region of face in image includes:
In step S111, the human face region in described image is detected;
In step S112, the face key point in the human face region is positioned;
In step S113, the structural region of face is determined according to the face key point;
In step S114, rim detection is carried out to the structural region of the face, to determine the structural area of the face
The edge in domain.
Alternatively, the structural region of the face includes at least one of:
Face, eyes, eyebrow, lip, nose, ear.
Corresponding with the embodiment of foregoing image processing method, the disclosure additionally provides the implementation of image processing apparatus
Example.
Fig. 8 is a kind of schematic block diagram of image processing apparatus according to an exemplary embodiment.Reference picture 8, the dress
Put including:
Edge determining module 81, it is configured to determine that the edge of the structural region of face in image;
Radius setup module 82, the pixel in described image is configured as to the beeline at the edge, is set
The filter radius of the pixel, wherein, the filter radius and the beeline inverse correlation;
Filtration module 83, it is configured as that the pixel is carried out according to the filter radius to protect side filtering.
Alternatively, in the case where the beeline is more than pre-determined distance, the filter radius is equal to pre-set radius;
In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the most short distance
From inverse correlation, and the filter radius is more than the pre-set radius.
Alternatively, in the case where the beeline is more than pre-determined distance T, the filter radius r=r0;
In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre-
If constant.
Fig. 9 is a kind of schematic block diagram of edge determining module according to an exemplary embodiment.As shown in figure 9,
On the basis of embodiment illustrated in fig. 8, the edge determining module 81 includes:
Detection sub-module 811, it is configured as detecting the human face region in described image;
Submodule 812 is positioned, is configured as positioning the face key point in the human face region;
Determination sub-module 813, it is configured as determining the structural region of face according to the face key point;
Detection sub-module 814, it is configured as carrying out rim detection to the structural region of the face, to determine the face
Structural region edge.
Alternatively, the structural region of the face includes at least one of:
Face, eyes, eyebrow, lip, nose, ear.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in correlation technique
It is described in detail in embodiment, explanation will be not set forth in detail herein.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The module of explanation can be or may not be physically separate, can be as the part that module is shown or can also
It is not physical module, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to reality
Need to select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The disclosure also proposes a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Determine the edge of the structural region of face in image;
Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein,
The filter radius and the beeline inverse correlation;
The pixel is carried out according to the filter radius to protect side filtering.
The disclosure also proposes a kind of computer-readable recording medium, is stored thereon with computer program, and the program is processed
Device realizes following steps when performing:
Determine the edge of the structural region of face in image;
Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein,
The filter radius and the beeline inverse correlation;
The pixel is carried out according to the filter radius to protect side filtering.
Figure 10 is a kind of schematic block diagram of device 1000 for image procossing according to an exemplary embodiment.Example
Such as, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and flat board is set
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 10, device 1000 can include following one or more assemblies:Processing component 1002, memory 1004,
Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster
1014, and communication component 1016.
The integrated operation of the usual control device 1000 of processing component 1002, such as communicated with display, call, data,
The operation that camera operation and record operation are associated.Processing component 1002 can include one or more processors 1020 to perform
Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 1002 can include one or more moulds
Block, the interaction being easy between processing component 1002 and other assemblies.For example, processing component 1002 can include multi-media module,
To facilitate the interaction between multimedia groupware 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in device 1000.These data
Example includes being used for the instruction of any application program or method operated on device 1000, contact data, telephone book data,
Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1000.
Multimedia groupware 1008 is included in the screen of one output interface of offer between described device 1000 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed
Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic
The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more
Media component 1008 includes a front camera and/or rear camera.When device 1000 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat
Gram wind (MIC), when device 1000 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The audio signal received can be further stored in memory 1004 or via communication
Component 1016 is sent.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 provide interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented
Estimate.For example, sensor cluster 1014 can detect opening/closed mode of device 1000, the relative positioning of component, such as institute
The display and keypad that component is device 1000 are stated, sensor cluster 1014 can be with detection means 1000 or device 1,000 1
The position of individual component changes, the existence or non-existence that user contacts with device 1000, the orientation of device 1000 or acceleration/deceleration and dress
Put 1000 temperature change.Sensor cluster 1014 can include proximity transducer, be configured in no any physics
The presence of object nearby is detected during contact.Sensor cluster 1014 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress
The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1000.It is exemplary at one
In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1016 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1020 of device 1000.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (12)
- A kind of 1. image processing method, it is characterised in that including:Determine the edge of the structural region of face in image;Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein, it is described Filter radius and the beeline inverse correlation;The pixel is carried out according to the filter radius to protect side filtering.
- 2. according to the method for claim 1, it is characterised in that in the case where the beeline is more than pre-determined distance, The filter radius is equal to pre-set radius;In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the beeline are anti- Correlation, and the filter radius is more than the pre-set radius.
- 3. according to the method for claim 2, it is characterised in that in the case where the beeline is more than pre-determined distance T, The filter radius r=r0;In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius r=Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre- If constant.
- 4. according to the method in any one of claims 1 to 3, it is characterised in that the structure for determining face in image The edge in region includes:Detect the human face region in described image;Position the face key point in the human face region;The structural region of face is determined according to the face key point;Rim detection is carried out to the structural region of the face, to determine the edge of the structural region of the face.
- 5. according to the method in any one of claims 1 to 3, it is characterised in that the structural region of the face include with It is at least one lower:Face, eyes, eyebrow, lip, nose, ear.
- A kind of 6. image processing apparatus, it is characterised in that including:Edge determining module, it is configured to determine that the edge of the structural region of face in image;Radius setup module, the pixel in described image is configured as to the beeline at the edge, the picture is set The filter radius of element, wherein, the filter radius and the beeline inverse correlation;Filtration module, it is configured as that the pixel is carried out according to the filter radius to protect side filtering.
- 7. device according to claim 6, it is characterised in that in the case where the beeline is more than pre-determined distance, The filter radius is equal to pre-set radius;In the case where the beeline is less than or equal to the pre-determined distance, the filter radius and the beeline are anti- Correlation, and the filter radius is more than the pre-set radius.
- 8. device according to claim 7, it is characterised in that in the case where the beeline is more than pre-determined distance T, The filter radius r=r0;In the case where the beeline is less than or equal to the pre-determined distance T, the filter radius Wherein, r0For the pre-set radius, T is the pre-determined distance, and dist is the beeline, r1To be pre- If constant.
- 9. the device according to any one of claim 6 to 8, it is characterised in that the edge determining module includes:Detection sub-module, it is configured as detecting the human face region in described image;Submodule is positioned, is configured as positioning the face key point in the human face region;Determination sub-module, it is configured as determining the structural region of face according to the face key point;Detection sub-module, it is configured as carrying out rim detection to the structural region of the face, to determine the structure of the face The edge in region.
- 10. the device according to any one of claim 6 to 8, it is characterised in that the structural region of the face include with It is at least one lower:Face, eyes, eyebrow, lip, nose, ear.
- 11. a kind of electronic equipment, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:Determine the edge of the structural region of face in image;Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein, it is described Filter radius and the beeline inverse correlation;The pixel is carried out according to the filter radius to protect side filtering.
- 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor Following steps are realized during execution:Determine the edge of the structural region of face in image;Pixel in described image sets the filter radius of the pixel to the beeline at the edge, wherein, it is described Filter radius and the beeline inverse correlation;The pixel is carried out according to the filter radius to protect side filtering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710812114.XA CN107644405B (en) | 2017-09-11 | 2017-09-11 | Image processing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710812114.XA CN107644405B (en) | 2017-09-11 | 2017-09-11 | Image processing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107644405A true CN107644405A (en) | 2018-01-30 |
CN107644405B CN107644405B (en) | 2020-04-07 |
Family
ID=61111439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710812114.XA Active CN107644405B (en) | 2017-09-11 | 2017-09-11 | Image processing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107644405B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111260876A (en) * | 2018-11-30 | 2020-06-09 | 北京欣奕华科技有限公司 | Image processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661611A (en) * | 2009-09-25 | 2010-03-03 | 西安电子科技大学 | Realization method based on bayesian non-local mean filter |
CN102592263A (en) * | 2011-01-05 | 2012-07-18 | 苏州巴米特信息科技有限公司 | Image reinforcement method based on frequency domain |
CN102656888A (en) * | 2009-12-18 | 2012-09-05 | 夏普株式会社 | Image filter, encoding device, decoding device, and data structure |
CN105354806A (en) * | 2015-11-20 | 2016-02-24 | 上海熙菱信息技术有限公司 | Dark channel based rapid defogging method and system |
CN106651938A (en) * | 2017-01-17 | 2017-05-10 | 湖南优象科技有限公司 | Depth map enhancement method blending high-resolution color image |
CN106780311A (en) * | 2016-12-22 | 2017-05-31 | 华侨大学 | A kind of fast face image beautification method of combination skin roughness |
CN106980845A (en) * | 2017-04-24 | 2017-07-25 | 西安电子科技大学 | The crucial independent positioning method of face based on structured modeling |
US20170249742A1 (en) * | 2016-02-25 | 2017-08-31 | Nigella LAWSON | Depth of field processing |
-
2017
- 2017-09-11 CN CN201710812114.XA patent/CN107644405B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661611A (en) * | 2009-09-25 | 2010-03-03 | 西安电子科技大学 | Realization method based on bayesian non-local mean filter |
CN102656888A (en) * | 2009-12-18 | 2012-09-05 | 夏普株式会社 | Image filter, encoding device, decoding device, and data structure |
CN102592263A (en) * | 2011-01-05 | 2012-07-18 | 苏州巴米特信息科技有限公司 | Image reinforcement method based on frequency domain |
CN105354806A (en) * | 2015-11-20 | 2016-02-24 | 上海熙菱信息技术有限公司 | Dark channel based rapid defogging method and system |
US20170249742A1 (en) * | 2016-02-25 | 2017-08-31 | Nigella LAWSON | Depth of field processing |
CN106780311A (en) * | 2016-12-22 | 2017-05-31 | 华侨大学 | A kind of fast face image beautification method of combination skin roughness |
CN106651938A (en) * | 2017-01-17 | 2017-05-10 | 湖南优象科技有限公司 | Depth map enhancement method blending high-resolution color image |
CN106980845A (en) * | 2017-04-24 | 2017-07-25 | 西安电子科技大学 | The crucial independent positioning method of face based on structured modeling |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111260876A (en) * | 2018-11-30 | 2020-06-09 | 北京欣奕华科技有限公司 | Image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107644405B (en) | 2020-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10565763B2 (en) | Method and camera device for processing image | |
CN105512605B (en) | Face image processing process and device | |
EP2977959B1 (en) | Method and device for adjusting skin color | |
CN104408426B (en) | Facial image glasses minimizing technology and device | |
EP3133527A1 (en) | Human face recognition method, apparatus and terminal | |
CN106951884A (en) | Gather method, device and the electronic equipment of fingerprint | |
CN106384098A (en) | Image-based head posture detection method, device and terminal | |
CN107122679A (en) | Image processing method and device | |
CN107392166A (en) | Skin color detection method, device and computer-readable recording medium | |
CN106682736A (en) | Image identification method and apparatus | |
CN105488527A (en) | Image classification method and apparatus | |
CN104484858B (en) | Character image processing method and processing device | |
CN105426867A (en) | Face identification verification method and apparatus | |
CN106980840A (en) | Shape of face matching process, device and storage medium | |
CN106778531A (en) | Face detection method and device | |
CN108227933A (en) | The control method and device of glasses | |
CN106355549A (en) | Photographing method and equipment | |
CN105354793A (en) | Facial image processing method and device | |
CN107730448A (en) | U.S. face method and device based on image procossing | |
CN107464253A (en) | eyebrow location method and device | |
CN107231505A (en) | Image processing method and device | |
CN104867112B (en) | Photo processing method and device | |
CN107832746A (en) | Expression recognition method and device | |
CN105138956A (en) | Face detection method and device | |
CN107169429A (en) | Vivo identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |