CN107330866A - Removing method, device and the terminal of highlight area - Google Patents

Removing method, device and the terminal of highlight area Download PDF

Info

Publication number
CN107330866A
CN107330866A CN201710458366.7A CN201710458366A CN107330866A CN 107330866 A CN107330866 A CN 107330866A CN 201710458366 A CN201710458366 A CN 201710458366A CN 107330866 A CN107330866 A CN 107330866A
Authority
CN
China
Prior art keywords
highlight area
radius
target
canceled
highlight
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
Application number
CN201710458366.7A
Other languages
Chinese (zh)
Other versions
CN107330866B (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 CN201710458366.7A priority Critical patent/CN107330866B/en
Publication of CN107330866A publication Critical patent/CN107330866A/en
Application granted granted Critical
Publication of CN107330866B publication Critical patent/CN107330866B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing

Landscapes

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

Abstract

The present invention proposes a kind of removing method of highlight area, device and terminal, and this method includes determining its barycenter to each highlight area to be canceled in multiple highlight areas to be canceled;It is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, radius of target corresponding with each highlight area to be canceled respectively is obtained;Based on the wave filter with radius of target correspondingly-sized, highlight area affiliated to radius of target carries out Processing for removing.Highlight area eradicating efficacy can effectively be lifted by the present invention, and lifting eliminates efficiency.

Description

Removing method, device and the terminal of highlight area
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of removing method of highlight area, device and terminal.
Background technology
It is to use a kind of filter of fixed dimension during being eliminated to the highlight area of image in correlation technique Ripple device is eliminated to highlight area, and eradicating efficacy is not good.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the invention is to propose a kind of removing method of highlight area, bloom can be effectively lifted Region eradicating efficacy, and lifting eliminates efficiency.
Second object of the present invention is to propose a kind of cancellation element of highlight area.
Third object of the present invention is to propose a kind of cancellation element of highlight area.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of terminal.
To reach above-mentioned purpose, the removing method for the highlight area that first aspect present invention embodiment is proposed, including:To many Each highlight area to be canceled in individual highlight area to be canceled determines its barycenter;Determine in each highlight area to be canceled Radius of target of the pixel relative to its barycenter, obtain target corresponding with each highlight area to be canceled respectively Radius;Based on the wave filter with the radius of target correspondingly-sized, highlight area affiliated to the radius of target is carried out at elimination Reason.
The removing method for the highlight area that first aspect present invention embodiment is proposed, by multiple highlight areas to be canceled In each highlight area to be canceled determine its barycenter, it is determined that the pixel in each highlight area to be canceled is relative to its barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively, based on radius of target correspondingly-sized Wave filter, affiliated to radius of target highlight area carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and carry Rise and eliminate efficiency.
To reach above-mentioned purpose, the cancellation element for the highlight area that second aspect of the present invention embodiment is proposed, including:Barycenter Determining module, for determining its barycenter to each highlight area to be canceled in multiple highlight areas to be canceled;Radius of target is true Cover half block, for determining radius of target of the pixel relative to its barycenter in each highlight area to be canceled, is obtained To radius of target corresponding with each highlight area to be canceled respectively;Cancellation module, for based on the radius of target The wave filter of correspondingly-sized, highlight area affiliated to the radius of target carries out Processing for removing.
The cancellation element for the highlight area that second aspect of the present invention embodiment is proposed, by multiple highlight areas to be canceled In each highlight area to be canceled determine its barycenter, it is determined that the pixel in each highlight area to be canceled is relative to its barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively, based on radius of target correspondingly-sized Wave filter, affiliated to radius of target highlight area carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and carry Rise and eliminate efficiency.
To reach above-mentioned purpose, the cancellation element for the highlight area that third aspect present invention embodiment is proposed, its feature exists In, including:Processor;Memory for storing processor-executable instruction;Wherein, the processor is configured as:To many Each highlight area to be canceled in individual highlight area to be canceled determines its barycenter;Determine in each highlight area to be canceled Radius of target of the pixel relative to its barycenter, obtain target corresponding with each highlight area to be canceled respectively Radius;Based on the wave filter with the radius of target correspondingly-sized, highlight area affiliated to the radius of target is carried out at elimination Reason.
The cancellation element for the highlight area that third aspect present invention embodiment is proposed, by multiple highlight areas to be canceled In each highlight area to be canceled determine its barycenter, it is determined that the pixel in each highlight area to be canceled is relative to its barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively, based on radius of target correspondingly-sized Wave filter, affiliated to radius of target highlight area carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and carry Rise and eliminate efficiency.
To reach above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter, when computing device of the instruction in the storage medium by terminal so that terminal is able to carry out a kind of highlight area Removing method, methods described includes:Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled;Really Radius of target of the pixel relative to its barycenter in fixed each highlight area to be canceled, obtain respectively with it is described every The corresponding radius of target of individual highlight area to be canceled;Based on the wave filter with the radius of target correspondingly-sized, to the target The affiliated highlight area of radius carries out Processing for removing.
The non-transitorycomputer readable storage medium that fourth aspect present invention embodiment is proposed, by multiple to be canceled Each highlight area to be canceled in highlight area determines its barycenter, it is determined that the pixel in each highlight area to be canceled is relative In the radius of target of its barycenter, radius of target corresponding with each highlight area to be canceled respectively is obtained, is based on and radius of target The wave filter of correspondingly-sized, highlight area affiliated to radius of target carries out Processing for removing, can effectively lift highlight area elimination Effect, and lifting eliminates efficiency.
To reach above-mentioned purpose, fifth aspect present invention also proposes a kind of terminal, and the terminal includes housing, processor, deposited Reservoir, circuit board and power circuit, wherein, the circuit board is placed in the interior volume that the housing is surrounded, the processor It is arranged on the memory on the circuit board;The power circuit, for each circuit or device confession for the terminal Electricity;The memory is used to store executable program code;What the processor was stored by reading in the memory holds Line program code runs program corresponding with the executable program code, for performing:To multiple speculars to be canceled Each highlight area to be canceled in domain determines its barycenter;Determine pixel in each highlight area to be canceled relative to The radius of target of its barycenter, obtains radius of target corresponding with each highlight area to be canceled respectively;Based on institute The wave filter of radius of target correspondingly-sized is stated, highlight area affiliated to the radius of target carries out Processing for removing.
The terminal that fifth aspect present invention embodiment is proposed, by each to be canceled in multiple highlight areas to be canceled Highlight area determines its barycenter, it is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, is obtained To radius of target corresponding with each highlight area to be canceled respectively, based on the wave filter with radius of target correspondingly-sized, to mesh Mark the affiliated highlight area of radius and carry out Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting eliminates efficiency.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet of the removing method for the highlight area that one embodiment of the invention is proposed;
Fig. 2 is the schematic flow sheet of the removing method for the highlight area that another embodiment of the present invention is proposed;
Fig. 3 is the facial zone schematic diagram of picture in the embodiment of the present invention;
Fig. 4 is highlight area schematic diagram to be canceled in the embodiment of the present invention;
Fig. 5 is a highlight area schematic diagram to be canceled in the embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the removing method for the highlight area that another embodiment of the present invention is proposed;
Fig. 7 is the structural representation of the cancellation element for the highlight area that one embodiment of the invention is proposed;
Fig. 8 is the structural representation of the cancellation element for the highlight area that another embodiment of the present invention is proposed;
Fig. 9 is the structural representation for the terminal that one embodiment of the invention is proposed.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this All changes in the range of spirit and intension that the embodiment of invention includes falling into attached claims, modification and equivalent Thing.
Fig. 1 is the schematic flow sheet of the removing method for the highlight area that one embodiment of the invention is proposed.
Embodiments of the invention can be applied during user beautifies to the picture that terminal is clapped, or, It can also apply during user beautifies to the picture of shot by camera, this is not restricted.
Further, user can be by setting image beautification class application program in the terminal to disappear highlight area Remove.
Wherein, application program can refer to run software program on an electronic device, and electronic equipment is, for example, personal electricity Brain (Personal Computer, PC), cloud device or mobile device, mobile device such as smart mobile phone, or flat board electricity Brain etc..Terminal can be the hardware that smart mobile phone, tablet personal computer, personal digital assistant, e-book etc. have various operating systems Equipment, is not restricted to this.
It is to use a kind of filter of fixed dimension during being eliminated to the highlight area of image in correlation technique Ripple device is eliminated to highlight area.
And be by using the wave filter matched with each highlight area to be canceled, to highlight area in the present embodiment Processing for removing is carried out, thus, with more preferable adaptivity, effectively lifting highlight area eradicating efficacy, and lifting eliminates efficiency.
It should be noted that the executive agent of the embodiment of the present invention, can be, for example, that the central of terminal is handled on hardware Device (Central Processing Unit, CPU), can be, for example, the related clothes of the image beautification class in terminal on software Business, is not restricted to this.
Referring to Fig. 1, this method includes:
S11:Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled.
It is understood that the highlight area of at least one may be included in the picture of a highlight area to be canceled, Generally, the highlight area of at least one is dispersed distribution, and size is different.
Therefore, in an embodiment of the present invention, can be right using the wave filter matched with each highlight area to be canceled Highlight area carries out Processing for removing.
In an embodiment of the present invention, it can come true first by determining the barycenter mode of each highlight area to be canceled Fixed each highlight area size feature to be canceled, it is for instance possible to use the related algorithm in geometry physics, is calculated every The barycenter of individual highlight area to be canceled, therefore not to repeat here.
In an embodiment of the present invention, referring to Fig. 2, before S11, it can also include:
S21:Multiple highlight areas are extracted from the picture of highlight area to be canceled.
S22:Multiple highlight areas are done with corrosion dilation operation processing, and multiple height to be canceled are determined according to result Light region.
In an embodiment of the present invention, each highlight area to be canceled in multiple highlight areas to be canceled determines it Before barycenter, facial zone (referring to Fig. 3) therein can be extracted to picture first, it is then, the tone based on facial zone, full With degree, brightness (Hue, Saturation, Value, HSV) feature, multiple highlight areas of the facial zone are extracted, enter one Multiple highlight areas are corroded and expansion process by step using the corrosion expansion algorithm in image procossing, remove multiple blooms Isolated point in region, regard remaining highlight area as highlight area to be canceled.
Referring to Fig. 4, Fig. 4 is highlight area schematic diagram to be canceled in the embodiment of the present invention, and Fig. 4 includes five height to be canceled Light region 41, as seen from Figure 4, five highlight areas to be canceled are dispersed distributions, and size is different.
In an embodiment of the present invention, it is true by each highlight area to be canceled in multiple highlight areas to be canceled Before its fixed barycenter, multiple highlight areas are extracted from the picture of highlight area to be canceled, and multiple highlight areas are done corroded Dilation operation processing, and determines multiple highlight areas to be canceled according to result, when highlight area is isolated point, can be with Processing for removing is carried out to it with reference to using corrosion expansion algorithm, operand can be reduced, thus, lifting eliminates efficiency.
S12:It is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with The corresponding radius of target of each highlight area to be canceled.
It is alternatively possible to by whole pixels in each highlight area to be canceled relative to multiple radiuses of its barycenter Average value, is used as radius of target.
Referring to Fig. 5, Fig. 5 is a highlight area schematic diagram to be canceled in the embodiment of the present invention.Each specular to be canceled Include multiple pixels 51, and a barycenter 52 in domain.In an embodiment of the present invention, each pixel can be calculated 51 relative to barycenter 52 radius, then, by the average value of multiple radius of target, as radius of target, or, can also be therefrom Several feature pixels are selected, feature pixel can be, for example, the pixel of the radius with fixed intervals, by several The average value of the radius of feature pixel is not restricted as radius of target to this.
Therefore, by the way that whole pixels in each highlight area to be canceled are flat relative to multiple radiuses of its barycenter Average, as radius of target, and uses radius of target to characterize the radial features of the highlight area to be canceled, can support follow-up choosing The wave filter of more suitable dimension is taken, and then effectively lifts highlight area eradicating efficacy, and algorithm is realized simply, is saved and is calculated money Source.
S13:Based on the wave filter with radius of target correspondingly-sized, highlight area affiliated to radius of target is carried out at elimination Reason.
Wherein, the size can be, for example, the filter radius of wave filter.
It is alternatively possible to size corresponding with radius of target is determined based on default mapping table, and according to corresponding chi The very little size to wave filter is configured, to be carried out according to the wave filter postponed to the affiliated highlight area of radius of target at elimination Reason.
Or, the wave filter with radius of target correspondingly-sized can also be downloaded to from network side, this is not restricted.
In an embodiment of the present invention, by based on the wave filter with radius of target correspondingly-sized, to belonging to radius of target Highlight area carries out Processing for removing so that eradicating efficacy is more accurate, thus, it is possible to effectively lifting highlight area eradicating efficacy, And lifting eliminates efficiency.
In the present embodiment, by determining its barycenter to each highlight area to be canceled in multiple highlight areas to be canceled, It is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with each height to be canceled The corresponding radius of target in light region, based on the wave filter with radius of target correspondingly-sized, enters to the affiliated highlight area of radius of target Row Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting eliminates efficiency.
Fig. 6 is the schematic flow sheet of the removing method for the highlight area that another embodiment of the present invention is proposed.
Referring to Fig. 6, this method includes:
S61:According to the default mapping table of the size of multiple radius of target and corresponding wave filter generation.
In an embodiment of the present invention, the plurality of radius of target can be previously according to experimental data estimate obtain it is multiple Possible radius value.
As a kind of example, the method that the size of corresponding wave filter is calculated according to radius of target can be with example such as Under:
1st, for each possible radius of target, whole pixel number A in its affiliated highlight area are counted.
2nd, whole pixel number B in the affiliated blee region of the highlight area are counted.
3rd, pixel number A and pixel number B ratio value C are determined.
4th, ratio value C and predetermined threshold value (being, for example, 2%) are compared, obtains comparison result.
5th, the size of corresponding wave filter is calculated according to comparison result and radius of target.
That is, when comparison result is that ratio value C is more than predetermined threshold value, the size of corresponding wave filter is radius of target 1.5 times -2 times;When comparison result is that ratio value C is less than or equal to predetermined threshold value, the size of corresponding wave filter is target 3-4 times of radius.
In an embodiment of the present invention, given birth to by the size previously according to multiple radius of target and corresponding wave filter Into default mapping table, then, the default mapping table can be stored in the database of terminal, subsequently through direct Size corresponding with radius of target is determined based on default mapping table, the operation efficiency of terminal handler can be lifted, is saved Computing cost.
S62:Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled.
In an embodiment of the present invention, it can come true first by determining the barycenter mode of each highlight area to be canceled Fixed each highlight area size feature to be canceled, it is for instance possible to use the related algorithm in geometry physics, is calculated every The barycenter of individual highlight area to be canceled, therefore not to repeat here.
S63:Average value by whole pixels in each highlight area to be canceled relative to multiple radiuses of its barycenter, As radius of target, radius of target corresponding with each highlight area to be canceled respectively is obtained.
Referring to Fig. 5, Fig. 5 is a highlight area schematic diagram to be canceled in the embodiment of the present invention.Each specular to be canceled Include multiple pixels 51, and a barycenter 52 in domain.In an embodiment of the present invention, each pixel can be calculated 51 relative to barycenter 52 radius, then, by the average value of multiple radius of target, as radius of target, or, can also be therefrom Several feature pixels are selected, feature pixel can be, for example, the pixel of the radius with fixed intervals, by several The average value of the radius of feature pixel is not restricted as radius of target to this.
Therefore, by the way that whole pixels in each highlight area to be canceled are flat relative to multiple radiuses of its barycenter Average, as radius of target, and uses radius of target to characterize the radial features of the highlight area to be canceled, can support follow-up choosing The wave filter of more suitable dimension is taken, and then effectively lifts highlight area eradicating efficacy, and algorithm is realized simply, is saved and is calculated money Source.
S64:Size corresponding with radius of target is determined based on default mapping table.
S65:The size of wave filter is configured according to corresponding size, with basis with the wave filter postponed to target half The affiliated highlight area in footpath carries out Processing for removing.
For example, the filter radius of wave filter can be configured according to corresponding size, and according to the filtering postponed Device is filtered computing to the affiliated highlight area of radius of target, to carry out Processing for removing to highlight area.
In the present embodiment, default pair is generated by the size previously according to multiple radius of target and corresponding wave filter Relation table is answered, then, the default mapping table can be stored in the database of terminal, it is default subsequently through being directly based upon Mapping table determines size corresponding with radius of target, can lift the operation efficiency of terminal handler, saves computing cost. By the average value by whole pixels in each highlight area to be canceled relative to multiple radiuses of its barycenter, target is used as Radius, and use radius of target to characterize the radial features of the highlight area to be canceled, the follow-up more suitable chi of selection can be supported Very little wave filter, and then highlight area eradicating efficacy is effectively lifted, and algorithm realizes simple, saving computing resource.By to many Each highlight area to be canceled in individual highlight area to be canceled determines its barycenter, it is determined that the picture in each highlight area to be canceled Vegetarian refreshments obtains radius of target corresponding with each highlight area to be canceled respectively relative to the radius of target of its barycenter, based on The wave filter of radius of target correspondingly-sized, highlight area affiliated to radius of target carries out Processing for removing, can effectively lift bloom Region eradicating efficacy, and lifting eliminates efficiency.
Fig. 7 is the structural representation of the cancellation element for the highlight area that one embodiment of the invention is proposed.
Referring to Fig. 7, the cancellation element 70 of the highlight area includes:Barycenter determining module 701, radius of target determining module 702, and cancellation module 703, wherein,
Barycenter determining module 701, for determining it to each highlight area to be canceled in multiple highlight areas to be canceled Barycenter.
Radius of target determining module 702, for determining the pixel in each highlight area to be canceled relative to its barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively.
Alternatively, radius of target determining module 702, specifically for:
Average value by whole pixels in each highlight area to be canceled relative to multiple radiuses of its barycenter, as Radius of target.
Cancellation module 703, for based on the wave filter with radius of target correspondingly-sized, to the affiliated highlight area of radius of target Carry out Processing for removing.
Alternatively, in some embodiments, referring to Fig. 8, cancellation module 703, including:
Determination sub-module 7031, for determining size corresponding with radius of target based on default mapping table.
Submodule 7032 is eliminated, for being configured according to corresponding size to the size of wave filter, is matched somebody with somebody with basis and postponed Wave filter to the affiliated highlight area of radius of target carry out Processing for removing.
Alternatively, in some embodiments, referring to Fig. 8, the cancellation element 70 of the highlight area also includes:
Generation module 704, for according to the default correspondence of the size of multiple radius of target and corresponding wave filter generation Relation table.
Extraction module 705, for extracting multiple highlight areas from the picture of highlight area to be canceled.
Calculation process module 706, for multiple highlight areas to be done with corrosion dilation operation processing, and it is true according to result Make multiple highlight areas to be canceled.
It should be noted that the explanation in earlier figures 1- Fig. 6 embodiments to the removing method embodiment of highlight area The cancellation element 70 of the highlight area of the embodiment is also applied for, its realization principle is similar, and here is omitted.
In the present embodiment, by determining its barycenter to each highlight area to be canceled in multiple highlight areas to be canceled, It is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with each height to be canceled The corresponding radius of target in light region, based on the wave filter with radius of target correspondingly-sized, enters to the affiliated highlight area of radius of target Row Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting eliminates efficiency.
Fig. 9 is the structural representation for the terminal that one embodiment of the invention is proposed.
The terminal can be mobile phone, tablet personal computer etc..
Referring to Fig. 9, the terminal 90 of the present embodiment includes:Housing 901, processor 902, memory 903, circuit board 904, electricity Source circuit 905, circuit board 904 is placed in the interior volume that housing 901 is surrounded, and processor 902, memory 903 are arranged on circuit On plate 904;Power circuit 905, for being that each circuit of terminal 90 or device are powered;Memory 903 is used to store executable journey Sequence code;Wherein, processor 902 is run and executable journey by reading the executable program code stored in memory 903 The corresponding program of sequence code, for performing:
Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled;
It is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with it is each The corresponding radius of target of highlight area to be canceled;
Based on the wave filter with radius of target correspondingly-sized, highlight area affiliated to radius of target carries out Processing for removing.
It should be noted that the explanation in earlier figures 1- Fig. 6 embodiments to the removing method embodiment of highlight area The terminal 90 of the embodiment is also applied for, its realization principle is similar, and here is omitted.
Terminal in the present embodiment, by determining it to each highlight area to be canceled in multiple highlight areas to be canceled Barycenter, it is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtains treating with each respectively The corresponding radius of target of highlight area is eliminated, based on the wave filter with radius of target correspondingly-sized, to the affiliated bloom of radius of target Region carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting eliminates efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, works as storage Instruction in medium by the computing device of terminal when so that terminal is able to carry out a kind of removing method of highlight area, method Including:Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled;It is determined that each bloom to be canceled Radius of target of the pixel relative to its barycenter in region, obtains target half corresponding with each highlight area to be canceled respectively Footpath;Based on the wave filter with radius of target correspondingly-sized, highlight area affiliated to radius of target carries out Processing for removing.
Non-transitorycomputer readable storage medium in the present embodiment, by every in multiple highlight areas to be canceled Individual highlight area to be canceled determines its barycenter, it is determined that target of the pixel relative to its barycenter in each highlight area to be canceled Radius, obtains radius of target corresponding with each highlight area to be canceled respectively, based on the filtering with radius of target correspondingly-sized Device, highlight area affiliated to radius of target carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting is eliminated Efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when in computer program product Instruction when being executed by processor, perform a kind of removing method of highlight area, method includes:To multiple highlight areas to be canceled In each highlight area to be canceled determine its barycenter;It is determined that the pixel in each highlight area to be canceled is relative to its barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively;Based on radius of target correspondingly-sized Wave filter, affiliated to radius of target highlight area carries out Processing for removing.
Computer program product in the present embodiment, by each bloom to be canceled in multiple highlight areas to be canceled Region determines its barycenter, it is determined that radius of target of the pixel relative to its barycenter in each highlight area to be canceled, is divided Radius of target not corresponding with each highlight area to be canceled, based on the wave filter with radius of target correspondingly-sized, to target half The affiliated highlight area in footpath carries out Processing for removing, can effectively lift highlight area eradicating efficacy, and lifting eliminates efficiency.
It should be noted that in the description of the invention, term " first ", " second " etc. are only used for describing purpose, without It is understood that to indicate or imply relative importance.In addition, in the description of the invention, unless otherwise indicated, the implication of " multiple " It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changed, replacing and modification.

Claims (12)

1. a kind of removing method of highlight area, it is characterised in that comprise the following steps:
Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled;
Determine radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with The corresponding radius of target of each highlight area to be canceled;
Based on the wave filter with the radius of target correspondingly-sized, highlight area affiliated to the radius of target is carried out at elimination Reason.
2. the removing method of highlight area as claimed in claim 1, it is characterised in that described to be based on and the radius of target pair The wave filter of size is answered, highlight area affiliated to the radius of target carries out Processing for removing, including:
Size corresponding with the radius of target is determined based on default mapping table;
The size of wave filter is configured according to the corresponding size, with basis with the wave filter postponed to the target half The affiliated highlight area in footpath carries out Processing for removing.
3. the removing method of highlight area as claimed in claim 2, it is characterised in that described to multiple speculars to be canceled Each highlight area to be canceled in domain determined before its barycenter, in addition to:
The default mapping table is generated according to the size of multiple radius of target and corresponding wave filter.
4. the removing method of highlight area as claimed in claim 1, it is characterised in that the determination each height to be canceled Radius of target of the pixel relative to its barycenter in light region, including:
By average value of whole pixels relative to multiple radiuses of its barycenter in each highlight area to be canceled, It is used as the radius of target.
5. the removing method of the highlight area as described in claim any one of 1-4, it is characterised in that wait to disappear to multiple described Before its barycenter being determined except each highlight area to be canceled in highlight area, in addition to:
Multiple highlight areas are extracted from the picture of highlight area to be canceled;
Corrosion dilation operation processing is done to the multiple highlight area, and the multiple height to be canceled is determined according to result Light region.
6. a kind of cancellation element of highlight area, it is characterised in that including:
Barycenter determining module, for determining its barycenter to each highlight area to be canceled in multiple highlight areas to be canceled;
Radius of target determining module, for determining the pixel in each highlight area to be canceled relative to its described barycenter Radius of target, obtain radius of target corresponding with each highlight area to be canceled respectively;
Cancellation module, for based on the wave filter with the radius of target correspondingly-sized, to the affiliated specular of the radius of target Domain carries out Processing for removing.
7. the cancellation element of highlight area as claimed in claim 6, it is characterised in that the cancellation module, including:
Determination sub-module, for determining size corresponding with the radius of target based on default mapping table;
Submodule is eliminated, for being configured according to the corresponding size to the size of wave filter, with according to the filter postponed Ripple device carries out Processing for removing to the affiliated highlight area of the radius of target.
8. the cancellation element of highlight area as claimed in claim 7, it is characterised in that also include:
Generation module, for generating the default corresponding relation according to the size of multiple radius of target and corresponding wave filter Table.
9. the cancellation element of highlight area as claimed in claim 6, it is characterised in that the radius of target determining module, tool Body is used for:
By average value of whole pixels relative to multiple radiuses of its barycenter in each highlight area to be canceled, It is used as the radius of target.
10. the cancellation element of the highlight area as described in claim any one of 6-9, it is characterised in that also include:
Extraction module, for extracting multiple highlight areas from the picture of highlight area to be canceled;
Calculation process module, for doing corrosion dilation operation processing to the multiple highlight area, and is determined according to result Go out the multiple highlight area to be canceled.
11. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program The method as any one of claim 1-5 is realized when being executed by processor.
12. a kind of terminal, including housing, processor, memory, circuit board and power circuit, wherein, the circuit board is placed in The interior volume that the housing is surrounded, the processor and the memory are arranged on the circuit board;The power circuit, For being powered for each circuit or device of the terminal;The memory is used to store executable program code;The processing Device runs journey corresponding with the executable program code by reading the executable program code stored in the memory Sequence, for performing:
Its barycenter is determined to each highlight area to be canceled in multiple highlight areas to be canceled;
Determine radius of target of the pixel relative to its barycenter in each highlight area to be canceled, obtain respectively with The corresponding radius of target of each highlight area to be canceled;
Based on the wave filter with the radius of target correspondingly-sized, highlight area affiliated to the radius of target is carried out at elimination Reason.
CN201710458366.7A 2017-06-16 2017-06-16 Method and device for eliminating highlight area and terminal Expired - Fee Related CN107330866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458366.7A CN107330866B (en) 2017-06-16 2017-06-16 Method and device for eliminating highlight area and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458366.7A CN107330866B (en) 2017-06-16 2017-06-16 Method and device for eliminating highlight area and terminal

Publications (2)

Publication Number Publication Date
CN107330866A true CN107330866A (en) 2017-11-07
CN107330866B CN107330866B (en) 2021-03-05

Family

ID=60195555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458366.7A Expired - Fee Related CN107330866B (en) 2017-06-16 2017-06-16 Method and device for eliminating highlight area and terminal

Country Status (1)

Country Link
CN (1) CN107330866B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419185A (en) * 2020-11-20 2021-02-26 湖北工业大学 Accurate high-reflectivity removing method based on light field iteration

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783963A (en) * 2010-02-10 2010-07-21 西安理工大学 Nighttime image enhancing method with highlight inhibition
US20140072211A1 (en) * 2012-09-12 2014-03-13 Enlighted, Inc. Image detection and processing for building control
CN103985098A (en) * 2014-05-27 2014-08-13 广州商景网络科技有限公司 Method and system for removing highlight of certificate image
CN105957042A (en) * 2016-06-07 2016-09-21 北京理工大学 Highlight region eliminating method of endoscopic image
CN106204509A (en) * 2016-07-07 2016-12-07 西安电子科技大学 Based on region characteristic infrared and visible light image fusion method
CN106548176A (en) * 2016-11-18 2017-03-29 安徽大学 Finger vein image enhancement method based on self adaptation guiding filtering
CN106650794A (en) * 2016-11-24 2017-05-10 北京理工大学 Method and system for eliminating highlight of image affected by highlight reflection on object surface
US20170147900A1 (en) * 2015-11-23 2017-05-25 Lexmark International, Inc. Identifying consumer products in images

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783963A (en) * 2010-02-10 2010-07-21 西安理工大学 Nighttime image enhancing method with highlight inhibition
US20140072211A1 (en) * 2012-09-12 2014-03-13 Enlighted, Inc. Image detection and processing for building control
CN103985098A (en) * 2014-05-27 2014-08-13 广州商景网络科技有限公司 Method and system for removing highlight of certificate image
US20170147900A1 (en) * 2015-11-23 2017-05-25 Lexmark International, Inc. Identifying consumer products in images
CN105957042A (en) * 2016-06-07 2016-09-21 北京理工大学 Highlight region eliminating method of endoscopic image
CN106204509A (en) * 2016-07-07 2016-12-07 西安电子科技大学 Based on region characteristic infrared and visible light image fusion method
CN106548176A (en) * 2016-11-18 2017-03-29 安徽大学 Finger vein image enhancement method based on self adaptation guiding filtering
CN106650794A (en) * 2016-11-24 2017-05-10 北京理工大学 Method and system for eliminating highlight of image affected by highlight reflection on object surface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘茗: "基于噪声检测的自适应中值滤波算法", 《计算机应用》 *
宋金鹏: "激光光束M~2因子测试仪的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419185A (en) * 2020-11-20 2021-02-26 湖北工业大学 Accurate high-reflectivity removing method based on light field iteration

Also Published As

Publication number Publication date
CN107330866B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN108898643B (en) Image generation method, device and computer readable storage medium
US20190303757A1 (en) Weight skipping deep learning accelerator
CN113159147B (en) Image recognition method and device based on neural network and electronic equipment
WO2020024585A1 (en) Method and apparatus for training object detection model, and device
US11586903B2 (en) Method and system of controlling computing operations based on early-stop in deep neural network
CN107194374A (en) Human face region goes glossy method, device and terminal
Ayyavoo et al. Illumination pre‐processing method for face recognition using 2D DWT and CLAHE
CN110070115B (en) Single-pixel attack sample generation method, device, equipment and storage medium
JP6961640B2 (en) Data processing system and method
CN107392841A (en) Livid ring around eye removing method, device and terminal in human face region
CN115759148B (en) Image processing method, device, computer equipment and computer readable storage medium
KR20080058366A (en) Modeling micro-structure for feature extraction
CN113255433A (en) Model training method, device and computer storage medium
CN108629405B (en) Method and device for improving calculation efficiency of convolutional neural network
CN107330866A (en) Removing method, device and the terminal of highlight area
CN113077464A (en) Medical image processing method, medical image identification method and device
Muqeet et al. A collaborative representation face classification on separable adaptive directional wavelet transform based completed local binary pattern features
CN110222571B (en) Intelligent judgment method and device for black eye and computer readable storage medium
Xu et al. A double thresholding method for cancer stem cell detection
CN115909009A (en) Image recognition method, image recognition device, storage medium and electronic equipment
CN110264401A (en) Continuous type image magnification method, device and storage medium based on radial basis function
CN107358580A (en) Removing method, device and the terminal of highlight area
CN111179222A (en) Intelligent detection method and device for cerebral hemorrhage point and computer readable storage medium
CN107392859A (en) Removing method, device and the terminal of highlight area
CN109033797A (en) A kind of authority setting 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210305

CF01 Termination of patent right due to non-payment of annual fee