CN106993176A - A kind of method and electronic equipment for adjusting luminance video - Google Patents
A kind of method and electronic equipment for adjusting luminance video Download PDFInfo
- Publication number
- CN106993176A CN106993176A CN201610036750.3A CN201610036750A CN106993176A CN 106993176 A CN106993176 A CN 106993176A CN 201610036750 A CN201610036750 A CN 201610036750A CN 106993176 A CN106993176 A CN 106993176A
- Authority
- CN
- China
- Prior art keywords
- brightness
- regulation
- video frame
- current video
- frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/77—Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Television Receiver Circuits (AREA)
Abstract
The invention discloses a kind of method and electronic equipment for adjusting luminance video, belong to video field.Methods described includes:Obtain the brightness of current video frame;Obtain the regulated value of the brightness to current video frame;The regulation strategy of brightness is determined according to the relativity of the brightness of the regulated value of brightness and current video frame;According to the brightness after the regulation corresponding with the brightness of current video frame of the regulation policy calculation of brightness;It is the brightness after regulation to adjust the brightness of current video frame.The present invention is by according to the brightness after the regulation corresponding with the brightness of current video frame of the regulation policy calculation of brightness, when not only so that part or all of region in the video frame is dimmed or fuzzy, maintain the brightness of frame of video, and cause the brightness after the regulation obtained to be more applicable for video condition instantly, improve the accuracy of luminance video regulation, so that the luminance video after regulation is truer, Consumer's Experience of the user during instant video is improved, the effect of brightness regulation is improved.
Description
Technical field
The present invention relates to video field, more particularly to a kind of method and electronic equipment for adjusting luminance video.
Background technology
User is during instant video interactive, the environment light source where any one in video interactive both sides
When intensity is weaker, the part or all of region in video in the frame of video such as corresponding user face can be caused dimmed
Or fuzzy, the instant video interaction of influence user, so as to reduce the interactive experience of user.
When the part or all of region in frame of video it is dimmed or it is fuzzy be due to that the intensity of light source is weaker and fuzzy
When, user can only be by adjusting the intensity of light source size of place environment or being moved to the stronger ground of light intensity
FT-207 takes above mentioned problem, but in actual applications, the light source size of environment is uncontrollable where user
Or be inconvenient to adjust, and user is moved to the stronger place of light intensity and also results in user in instant video
During inconvenience;In actual use, above two solution can all reduce user and be regarded immediately
Consumer's Experience during frequency.
The content of the invention
In order that the brightness after the regulation that must be obtained is more applicable for video condition instantly, improves luminance video and adjust
The accuracy of section, improves the effect of brightness regulation, improves Consumer's Experience of the user during instant video,
The embodiments of the invention provide a kind of method and electronic equipment for adjusting luminance video.The technical scheme is as follows:
First aspect includes there is provided a kind of method for adjusting luminance video, methods described:
Obtain the brightness of current video frame;
Obtain the regulated value of the brightness to the current video frame;
The tune of brightness is determined according to the relativity of the brightness of the regulated value of the brightness and the current video frame
Section strategy;
According to bright after the regulation corresponding with the brightness of the current video frame of the regulation policy calculation of the brightness
Degree;
The brightness for adjusting the current video frame is the brightness after the regulation.
With reference in a first aspect, in the first possible implementation, the brightness for obtaining current video frame
Including:
According to the brightness of predeterminable area in the current video frame, the brightness of the current video frame is obtained.
With reference to the first possible implementation of first aspect, in second of possible implementation, institute
The relativity for stating the brightness of regulated value and the current video frame according to the brightness determines the regulation of brightness
Strategy includes:
If it is pre- that the ratio of the brightness of the regulated value of the brightness and the current video frame is less than or equal to first
If value, it is determined that the regulation strategy is the first regulation strategy;Otherwise, it determines the regulation strategy is second
Regulation strategy.
In second of possible implementation with reference to first aspect, in the third possible implementation,
It is bright after the regulation policy calculation according to brightness regulation corresponding with the brightness of the current video frame
Degree includes:
If the regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first preset algorithm;
If the regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
, can at the 4th kind with reference to the third any one possible implementation of first aspect to first aspect
In the implementation of energy, methods described also includes:
The preparatory condition that frame of video according to being gone to since the current video frame in predetermined interval is met,
Judge the current video frame for bright frame or spacer.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, institute
State adjust the current video frame brightness be the regulation after brightness include:
If the current video frame is bright frame, the brightness of the current video frame is adjusted in rgb space
Brightness after the regulation;
If the current video frame is spacer, the brightness of the current video frame is adjusted in yuv space
Brightness after the regulation.
Second aspect is there is provided a kind of electronic equipment, and the electronic equipment includes:
Luminance acquisition module, the brightness for obtaining current video frame;
Regulated value acquisition module, the regulated value for obtaining the brightness to the current video frame;
Policy generation module, pair for the brightness of the regulated value according to the brightness and the current video frame
Than the regulation strategy that relation determines brightness;
Processing module, the brightness pair for the regulation policy calculation according to the brightness and the current video frame
Brightness after the regulation answered;
Adjustment module, the brightness for adjusting the current video frame is the brightness after the regulation.
With reference to second aspect, in the first possible implementation, the luminance acquisition module specifically for:
According to the brightness of predeterminable area in the current video frame, the brightness of the current video frame is obtained.
With reference to the first possible implementation of second aspect, in second of possible implementation, institute
State policy generation module specifically for:
If it is pre- that the ratio of the brightness of the regulated value of the brightness and the current video frame is less than or equal to first
If value, it is determined that the regulation strategy is the first regulation strategy;Otherwise, it determines the regulation strategy is second
Regulation strategy.
With reference to second of possible implementation of second aspect, in the third possible implementation, institute
State processing module specifically for:
If the regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first preset algorithm;
If the regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
, can at the 4th kind with reference to the third any one possible implementation of second aspect to second aspect
In the implementation of energy, the equipment also includes judge module, is used for:
The preparatory condition that frame of video according to being gone to since the current video frame in predetermined interval is met,
Judge the current video frame for bright frame or spacer.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, institute
State adjustment module specifically for:
If the current video frame is bright frame, the brightness of the current video frame is adjusted in rgb space
Brightness after the regulation;
If the current video frame is spacer, the brightness of the current video frame is adjusted in yuv space
Brightness after the regulation.
The third aspect there is provided a kind of electronic equipment, the electronic equipment include display screen, memory and
The processor being connected with the display screen, the memory, wherein, the memory is used to store one group of journey
Sequence code, the program code that the processor calls the memory to be stored is used to perform following operation:
Obtain the brightness of current video frame;
Obtain the regulated value of the brightness to the current video frame;
The tune of brightness is determined according to the relativity of the brightness of the regulated value of the brightness and the current video frame
Section strategy;
According to bright after the regulation corresponding with the brightness of the current video frame of the regulation policy calculation of the brightness
Degree;
The brightness for adjusting the current video frame is the brightness after the regulation.
With reference to the third aspect, in the first possible implementation, the processor calls the memory
The program code stored is used to perform following operation:
According to the brightness of predeterminable area in the current video frame, the brightness of the current video frame is obtained.
With reference to the first possible implementation of the third aspect, in second of possible implementation, institute
State processor and call the program code that the memory is stored for performing following operation:
If it is pre- that the ratio of the brightness of the regulated value of the brightness and the current video frame is less than or equal to first
If value, it is determined that the regulation strategy is the first regulation strategy;Otherwise, it determines the regulation strategy is second
Regulation strategy.
With reference to second of possible implementation of the third aspect, in the third possible implementation, institute
State processor and call the program code that the memory is stored for performing following operation:
If the regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first preset algorithm;
If the regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
, can at the 4th kind with reference to the third any one possible implementation of the third aspect to the third aspect
Can implementation in, the program code that the processor calls the memory to be stored be additionally operable to perform with
Lower operation:
The preparatory condition that frame of video according to being gone to since the current video frame in predetermined interval is met,
Judge the current video frame for bright frame or spacer.
With reference to the 4th kind of possible implementation of the third aspect, in the 5th kind of possible implementation, institute
State processor and call the program code that the memory is stored for performing following operation:
If the current video frame is bright frame, the brightness of the current video frame is adjusted in rgb space
Brightness after the regulation;
If the current video frame is spacer, the brightness of the current video frame is adjusted in yuv space
Brightness after the regulation.
The embodiments of the invention provide a kind of method and electronic equipment for adjusting luminance video, this method includes:
Obtain the brightness of current video frame;Obtain the regulated value of the brightness to current video frame;According to the regulation of brightness
The relativity of the brightness of value and current video frame determines the regulation strategy of brightness;According to the regulation strategy of brightness
Calculate the brightness after regulation corresponding with the brightness of current video frame;It is regulation to adjust the brightness of current video frame
Brightness afterwards.The embodiment of the present invention is closed by the contrast of the brightness of regulated value and current video frame according to brightness
System determine brightness regulation strategy so that it is determined that regulation strategy be more applicable for video condition instantly, improve
The accuracy of luminance video regulation so that the luminance video after regulation is truer, improve user in sight
When video during Consumer's Experience;Regulation policy calculation according to brightness and the brightness of current video frame simultaneously
Brightness after corresponding regulation, when not only so that part or all of region in the video frame is dimmed or fuzzy,
The brightness of frame of video is maintained, while it is the brightness after regulation to adjust the brightness of current video frame, is further carried
The high accuracy of luminance video regulation, improves the effect of brightness regulation, improves Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to embodiment
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram for adjusting luminance video provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for adjusting luminance video provided in an embodiment of the present invention;
Fig. 3 is a kind of predeterminable area schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of electronic equipment structural representation provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structural representation provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that retouched
The embodiment stated is only a part of embodiment of the invention, rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of method for adjusting luminance video, this method can be used for instant video
The brightness regulation to frame of video in interaction, wherein, instant video interaction can be that interactive both sides pass through
Run what the application program on electronic equipment was realized, the electronic equipment can be smart mobile phone or flat
Plate computer or wearable device, can also be other mobile terminals, and the embodiment of the present invention is set to specific electronics
It is standby not to be limited;The brightness regulation of frame of video is included to frame of video it is overall carry out brightness regulation and/or
The part of frame of video carries out brightness regulation, and carries out instant video interaction with the frame of video brightness after the regulation.
In addition, this method can be also used at the brightness to frame of video in the processing procedure to frame of video
Reason, can be also used in other scenes, the embodiment of the present invention is not limited the specific application scenarios of this method
It is fixed.
Embodiment one is a kind of method for adjusting luminance video provided in an embodiment of the present invention, shown in reference picture 1,
This method includes:
101st, the brightness of current video frame is obtained.
Specifically, according to the brightness of predeterminable area in current video frame, obtaining the brightness of current video.
102nd, the regulated value of the brightness of current video frame is obtained.
103rd, the regulation plan of brightness is determined according to the relativity of the brightness of the regulated value of brightness and current video frame
Slightly.
If being preset specifically, the ratio of the brightness of the regulated value and current video frame of brightness is less than or equal to first
Value, it is determined that regulation strategy is the first regulation strategy;Otherwise, it determines regulation strategy is the second regulation strategy.
104th, according to the brightness after the regulation corresponding with the brightness of current video frame of the regulation policy calculation of brightness.
If specifically, regulation strategy is the first regulation strategy, being calculated using the first preset algorithm after regulation
Brightness;
If regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
Before step 105, this method also includes:
The preparatory condition that frame of video according to being gone to since current video frame in predetermined interval is met, judges
Current video frame is bright frame or spacer.
105th, the brightness of regulation current video frame is the brightness after regulation.
If specifically, current video frame is bright frame, the brightness of current video frame is adjusted in rgb space
Brightness after regulation;
If current video frame is spacer, by the brightness of current video frame after yuv space is adjusted to regulation
Brightness.
The embodiments of the invention provide a kind of method for adjusting luminance video, by the regulated value according to brightness and
The relativity of the brightness of current video frame determines the regulation strategy of brightness so that it is determined that regulation strategy more
Suitable for video condition instantly, the accuracy of luminance video regulation is improved so that the luminance video after regulation
It is more true, improve Consumer's Experience of the user during instant video;Simultaneously according to the regulation plan of brightness
Approximation calculates the brightness after regulation corresponding with the brightness of current video frame, not only causes part in the video frame
Or Zone Full it is dimmed or fuzzy when, maintain the brightness of frame of video, at the same adjust current video frame it is bright
Brightness after spending for regulation, further increases the accuracy of luminance video regulation, improves brightness regulation
Effect, improves Consumer's Experience.
Embodiment two is a kind of method for adjusting luminance video provided in an embodiment of the present invention, shown in reference picture 2,
This method includes:
201st, the brightness of current video frame is obtained.
Specifically, according to the brightness of predeterminable area in current video frame, obtaining the brightness of current video frame.
Wherein, predeterminable area can be inside frame of video 2/3rds region in current video frame, then this is obtained
Taking the process of the brightness of current video frame can be:
Current video frame is divided into inside and outside two parts, internal area accounts for 2/3rds of whole video frame size,
Outside is the region outside inside;
Brightness detection is carried out respectively to the inside and outside of current video frame, according to testing result, by brightness compared with
Most brightness value is as the brightness of the current video frame, and the brightness can represent with x.
It should be noted that the predeterminable area can be inside frame of video 2/3rds region or
3/4ths internal regions or the half domain of inside, can also be other, the present invention
Embodiment is not limited to the area shared by inside, and the area of the shared whole frame of video in the inside can basis
Practical application is specifically limited.
The predeterminable area can be the circle inside the rectangle or overall frame of video of frame of video whole interior
Shape or elliptical region, in addition to this it is possible to be irregular shape or hexagon inside overall frame of video etc.
Other shapes, the embodiment of the present invention is not limited to this, wherein, if the region is frame of video whole interior
Rectangle, the rectangle can be and integrally long and width equal proportion the rectangle of frame of video.
In addition, the predeterminable area can also be the region for including face in frame of video.
Exemplary, if the predeterminable area is the rectangle of frame of video whole interior, the predeterminable area is referred to
The region in video clip in Fig. 3 shown in a;If the predeterminable area is the ellipse of frame of video whole interior,
The predeterminable area is referred in Fig. 3 the region in the video clip shown in b;If the predeterminable area is video
Frame in includes the region of face, and the predeterminable area is referred in Fig. 3 the region in the video clip shown in c.
By the way that frame of video is divided into inside and outside two parts, and it regard the brightness value of brightness major part as the frame of video
Brightness, compared to traditional when the luminance contrast in image or frame of video is larger, to image or frame of video
Overall brightness detected and adjusted, the problem of contrast is uncoordinated after the regulation of appearance, thereby using
The method that inventive embodiments are provided, further increases the accuracy of luminance video regulation, improves brightness tune
The effect of section.
After the brightness for obtaining current video frame, method also includes:
It is bright frame or spacer to determine the current video frame.
Specifically, the process can be:
If the brightness of all frame of video in the default consecutive intervals time is both greater than the second preset value, it is determined that should
Last frame frame of video in the default consecutive intervals time is bright frame;If the institute in the fruit default consecutive intervals time
The brightness for having frame of video is both less than or equal to the second preset value, it is determined that in the default consecutive intervals time
Last frame video is spacer;
Exemplary, the predetermined interval can be 3s, and second preset value can be brightness value 64.
By determining that current video frame is bright frame or spacer, enabling the frame of video to being bright frame and spacer
It is adjusted, so as to further increase the accuracy of luminance video regulation, is carried by different regulation strategies
The high effect of brightness regulation so that the brightness after regulation is more applicable for frame of video instantly.
202nd, the regulated value of the brightness to current video frame is obtained.
Specifically, obtaining the regulated value of the brightness to current video frame, the regulated value of the brightness can use m tables
Show, exemplary, the regulated value of the brightness can be acquisition that user is manually entered or automatic,
The embodiment of the present invention to the specific acquisition modes of the regulated value of the brightness without limitation.
203rd, the regulation plan of brightness is determined according to the relativity of the brightness of the regulated value of brightness and current video frame
Slightly.
If specifically, the ratio of the brightness of the regulated value and current video frame of brightness is pre- less than or equal to first
If value, it is determined that regulation strategy is the first regulation strategy, performs step 204;Otherwise, if the regulated value of brightness
It is more than the first preset value with the ratio of the brightness of current video frame, it is determined that regulation strategy is the second regulation strategy,
Perform step 205.
Wherein, first preset value can be 2 in actual applications, i.e.,:
During m≤2x, it is determined that regulation strategy is the first regulation strategy, performs step 204;
During m > 2x, it is determined that regulation strategy is the second regulation strategy, performs step 205.
The regulation plan of brightness is determined by the relativity of the brightness of regulated value and current video frame according to brightness
Slightly so that it is determined that regulation strategy be more applicable for video condition instantly, improve luminance video regulation standard
True property so that the luminance video after regulation is truer, improves user of the user during instant video
Experience.
If it is the first regulation strategy the 204, to adjust strategy, the brightness after regulation is calculated using the first preset algorithm.
Specifically, first preset algorithm can be following preset formula:
Y=ax2+bx+c
Wherein x be the current video frame brightness, a, b, c be according to regulated value m calculate parameter, a, b, c can
To be that by three points (0,0), (x, m), (255,255) substitute into the first preset formula and calculate what is obtained.
It should be noted that being the first regulation strategy as m≤2x for bright frame and spacer, pass through
One preset algorithm calculates the brightness value after regulation.
If it is the second regulation strategy the 205, to adjust strategy, the brightness after regulation is calculated using the second preset algorithm.
If specifically, the current video frame is bright frame, the brightness after regulation is calculated using the second preset algorithm
Process include:
Calculate
Calculated according to C:y1=a1x2+b1x+c1, y2=a2x2+b2x+c2…yC=aCx2+bCx+cC;
By point (0,0), (x, 2x), (255,255), (0,0), (2x, 4x), (255,255) ...
(0,0), (Cx, m), (255,255) respectively substitute into above-mentioned formula in, a is calculated respectively1, b1, c1
To ac, bc, cc;
By yCTo y2Substitute into y1It is iterated, obtains y1=d1x2C+d2x2C-1+...d2C x+d2C+1;
By calculating obtained y1For the brightness after the bright frame regulation.
If the current video frame is spacer, the process bag of the brightness after regulation is calculated using the second preset algorithm
Include:
Calculate
Calculated according to C:y1=a1x2+b1x+c1, y2=a2x2+b2x+c2…yC=aCx2+bCx+cC;
By point (0,0), (x, 2x), (255,255), (0,0), (2x, 4x), (255,255) ...
(0,0), (Cx, m), (255,255) respectively substitute into above-mentioned formula in, a is calculated respectively1, b1, c1
To ac, bc, cc;
By yCTo y2Substitute into y1It is iterated, obtains y1=d1x2C+d2x2C-1+...d2C x+d2C+1。
It should be noted that step 204 and step 205 are to realize the regulation policy calculation according to brightness with working as
The process of brightness after the corresponding regulation of brightness of preceding frame of video, in addition to aforesaid way, can also pass through
Other modes realize the process, and the embodiment of the present invention is not limited to specific mode.
According to the brightness after the regulation corresponding with the brightness of current video frame of the regulation policy calculation of brightness, not only
During so that part or all of region in the video frame is dimmed or fuzzy, the brightness of frame of video is maintained, together
When regulation current video frame brightness for regulation after brightness, further increase luminance video regulation it is accurate
Property, the effect of brightness regulation is improved, Consumer's Experience is improved.
206th, judge current video frame for bright frame or spacer.
Specifically, the default bar met according to the frame of video since the current video frame forward in predetermined interval
Part, judges current video frame for bright frame or spacer, wherein, in actual applications, the predetermined interval can
Think 3 seconds or other appropriate intervals.
Specifically, the process can be:
If the brightness of all frame of video since the current video frame forward in predetermined interval is both greater than or is equal to
4/3rds of second preset value, then judge current video frame as bright frame;
If it is pre- that the brightness of all frame of video since the current video frame forward in predetermined interval is both less than second
If value, then judge current video frame as spacer;
Otherwise, it is determined that the bright spacer type of current frame of video is consistent with preceding video frame.
After it is determined that the current video frame is bright frame or spacer, method also includes:
Obtain the color space of current video frame.
Specifically, from the video format information of current video frame, obtaining the color space letter of current video frame
Breath, the color space information can be the color space description field included by the description field of current video frame,
The embodiment of the present invention is not limited to specific acquisition modes.
It should be noted that step 206 and can be with the step of perform the color space for obtaining current video frame
It is to perform or performed after 201 steps after step 205, the embodiment of the present invention is to specific
Step 206 and perform obtain current video frame color space the step of order be not limited.
If the step of step 206 and execution obtain the color space of current video frame is to hold after step 201
OK, then:
If current video frame is bright frame, the color space of the current video frame of acquisition is RGB, then performs the step
And afterwards the step of;
If current video frame is bright frame, the color space of the current video frame of acquisition is other color spaces, then
The color space of frame of video is converted to after RGB, perform the step and afterwards the step of;
If current video frame is spacer, the color space of the current video frame of acquisition is YUV, then performs the step
And afterwards the step of;
If current video frame is spacer, the color space of the current video frame of acquisition is other color spaces, then
The color space of frame of video is converted to after YUV, perform the step and afterwards the step of.
207th, the brightness of regulation current video frame is the brightness after regulation.
If specifically, current video frame is bright frame, by the brightness of current video frame in RGB (R, Red, table
Showing red, G, Green, expression green, B, Blue, expression blueness) Space adjustment is step 204 or walks
Brightness after the regulation of bright frame obtained by rapid 205 calculating;
If current video frame be spacer, by the brightness of current video frame YUV (also referred to as YCrCb, wherein,
" Y " represents lightness (Luminance or Luma), that is, grey decision-making;And " U " and " V " is represented
Be then colourity (Chrominance or Chroma), effect is description colors of image and saturation degree, for referring to
The color of fixation element.) Space adjustment is bright after the regulation of spacer obtained by step 204 or step 205 are calculated
Degree.
Optionally, if current video frame be bright frame, by the brightness of current video frame Space adjustment for regulation
After brightness afterwards, method also includes:
Saturation degree to the frame of video after the regulation is adjusted.
It is adjusted by the saturation degree to the frame of video after regulation, it is ensured that carry out the video after brightness regulation
The color saturation of frame, so as to further increase the effect of brightness regulation so that the luminance video after regulation
It is more true, improve Consumer's Experience of the user during instant video.
The embodiments of the invention provide a kind of method for adjusting luminance video, by the regulated value according to brightness and
The relativity of the brightness of current video frame determines the regulation strategy of brightness so that it is determined that regulation strategy more
Suitable for video condition instantly, the accuracy of luminance video regulation is improved so that the luminance video after regulation
It is more true, improve Consumer's Experience of the user during instant video;Simultaneously according to the regulation plan of brightness
Approximation calculates the brightness after regulation corresponding with the brightness of current video frame, not only causes part in the video frame
Or Zone Full it is dimmed or fuzzy when, maintain the brightness of frame of video, at the same adjust current video frame it is bright
Brightness after spending for regulation, further increases the accuracy of luminance video regulation, improves brightness regulation
Effect, improves Consumer's Experience.
Embodiment three is a kind of electronic equipment 4 provided in an embodiment of the present invention, and shown in reference picture 4, the electronics is set
It is standby to include:
Luminance acquisition module 41, the brightness for obtaining current video frame;
Regulated value acquisition module 42, the regulated value for obtaining the brightness to current video frame;
Policy generation module 43, the relativity for the brightness of regulated value and current video frame according to brightness
Determine the regulation strategy of brightness;
Processing module 44, for being adjusted according to the regulation policy calculation of brightness is corresponding with the brightness of current video frame
Brightness after section;
Adjustment module 45, is the brightness after regulation for adjusting the brightness of current video frame.
Optionally, luminance acquisition module 41 specifically for:
According to the brightness of predeterminable area in current video frame, the brightness of current video frame is obtained.
Optionally, policy generation module 43 specifically for:
If the ratio of the brightness of the regulated value and current video frame of brightness is less than or equal to the first preset value,
It is determined that regulation strategy is the first regulation strategy;Otherwise, it determines regulation strategy is the second regulation strategy.
Optionally, processing module 44 specifically for:
If regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first algorithmic formula;
If regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second algorithmic formula.
Optionally, equipment also includes judge module 46, is used for:
The preparatory condition that frame of video according to being gone to since current video frame in predetermined interval is met, judges
Current video frame is bright frame or spacer.
Optionally, adjustment module 45 specifically for:
If current video frame is bright frame, by the brightness of current video frame after rgb space is adjusted to regulation
Brightness;
If current video frame is spacer, by the brightness of current video frame after yuv space is adjusted to regulation
Brightness.
The embodiments of the invention provide a kind of electronic equipment, the electronic equipment by the regulated value according to brightness and
The relativity of the brightness of current video frame determines the regulation strategy of brightness so that it is determined that regulation strategy more
Suitable for video condition instantly, the accuracy of luminance video regulation is improved so that the luminance video after regulation
It is more true, improve Consumer's Experience of the user during instant video;Simultaneously according to the regulation plan of brightness
Approximation calculates the brightness after regulation corresponding with the brightness of current video frame, not only causes part in the video frame
Or Zone Full it is dimmed or fuzzy when, maintain the brightness of frame of video, at the same adjust current video frame it is bright
Brightness after spending for regulation, further increases the accuracy of luminance video regulation, improves brightness regulation
Effect, improves Consumer's Experience.
Example IV is a kind of electronic equipment provided in an embodiment of the present invention, and shown in reference picture 5, the electronics is set
It is standby to include display screen 51, memory 52 and the processor 53 being connected with display screen 51, memory 52, its
In, memory 52 is used to store batch processing code, and processor 53 calls the program that memory 52 is stored
Code is used to perform following operation:
Obtain the brightness of current video frame;
Obtain the regulated value of the brightness to current video frame;
The regulation strategy of brightness is determined according to the relativity of the brightness of the regulated value of brightness and current video frame;
According to the brightness after the regulation corresponding with the brightness of current video frame of the regulation policy calculation of brightness;
It is the brightness after regulation to adjust the brightness of current video frame.
Optionally, the program code that processor 53 calls memory 52 to be stored is used to perform following operation:
According to the brightness of predeterminable area in current video frame, the brightness of current video frame is obtained.
Optionally, the program code that processor 53 calls memory 52 to be stored is used to perform following operation:
If the ratio of the brightness of the regulated value and current video frame of brightness is less than or equal to the first preset value,
It is determined that regulation strategy is the first regulation strategy;Otherwise, it determines regulation strategy is the second regulation strategy.
Optionally, the program code that processor 53 calls memory 52 to be stored is used to perform following operation:
If regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first preset algorithm;
If regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
Optionally, the program code that processor 53 calls memory 52 to be stored is used to perform following operation:
The preparatory condition that frame of video according to being gone to since current video frame in predetermined interval is met, judges
Current video frame is bright frame or spacer.
Optionally, the program code that processor 53 calls memory 52 to be stored is used to perform following operation:
If current video frame is bright frame, by the brightness of current video frame after rgb space is adjusted to regulation
Brightness;
If current video frame is spacer, by the brightness of current video frame after yuv space is adjusted to regulation
Brightness.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention using any combination,
This is no longer repeated one by one.
It should be noted that:Above-described embodiment provide electronic equipment perform regulation luminance video when, only with
The division progress of above-mentioned each functional module, can be as needed and by above-mentioned work(for example, in practical application
It can distribute and be completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules,
To complete all or part of function described above.In addition, electronic equipment and tune that above-described embodiment is provided
The embodiment of the method for section luminance video belongs to same design, and it implements process and refers to embodiment of the method, this
In repeat no more.
One of ordinary skill in the art will appreciate that realizing all or part of step of above-described embodiment can pass through
Hardware is completed, and the hardware of correlation can also be instructed to complete by program, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or
CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in the present invention's
Within protection domain.
Claims (10)
1. a kind of method for adjusting luminance video, it is characterised in that methods described includes:
Obtain the brightness of current video frame;
Obtain the regulated value of the brightness to the current video frame;
The tune of brightness is determined according to the relativity of the brightness of the regulated value of the brightness and the current video frame
Section strategy;
According to bright after the regulation corresponding with the brightness of the current video frame of the regulation policy calculation of the brightness
Degree;
The brightness for adjusting the current video frame is the brightness after the regulation.
2. according to the method described in claim 1, it is characterised in that the brightness for obtaining current video frame
Including:
According to the brightness of predeterminable area in the current video frame, the brightness of the current video frame is obtained.
3. method according to claim 2, it is characterised in that the regulated value according to the brightness
The regulation strategy for determining brightness with the relativity of the brightness of the current video frame includes:
If it is pre- that the ratio of the brightness of the regulated value of the brightness and the current video frame is less than or equal to first
If value, it is determined that the regulation strategy is the first regulation strategy;Otherwise, it determines the regulation strategy is second
Regulation strategy.
4. method according to claim 3, it is characterised in that the regulation plan according to the brightness
The brightness that approximation calculates after regulation corresponding with the brightness of the current video frame includes:
If the regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first preset algorithm;
If the regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second preset algorithm.
5. the method according to Claims 1-4 any one, it is characterised in that methods described is also wrapped
Include:
The preparatory condition that frame of video according to being gone to since the current video frame in predetermined interval is met,
Judge the current video frame for bright frame or spacer.
6. method according to claim 5, it is characterised in that the regulation current video frame
Brightness is that the brightness after the regulation includes:
If the current video frame is bright frame, the brightness of the current video frame is adjusted in rgb space
Brightness after the regulation;
If the current video frame is spacer, the brightness of the current video frame is adjusted in yuv space
Brightness after the regulation.
7. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Luminance acquisition module, the brightness for obtaining current video frame;
Regulated value acquisition module, the regulated value for obtaining the brightness to the current video frame;
Policy generation module, pair for the brightness of the regulated value according to the brightness and the current video frame
Than the regulation strategy that relation determines brightness;
Processing module, the brightness pair for the regulation policy calculation according to the brightness and the current video frame
Brightness after the regulation answered;
Adjustment module, the brightness for adjusting the current video frame is the brightness after the regulation.
8. equipment according to claim 7, it is characterised in that the luminance acquisition module specifically for:
According to the brightness of predeterminable area in the current video frame, the brightness of the current video frame is obtained.
9. equipment according to claim 8, it is characterised in that the policy generation module specifically for:
If it is pre- that the ratio of the brightness of the regulated value of the brightness and the current video frame is less than or equal to first
If value, it is determined that the regulation strategy is the first regulation strategy;Otherwise, it determines the regulation strategy is second
Regulation strategy.
10. equipment according to claim 9, it is characterised in that the processing module specifically for:
If the regulation strategy is the first regulation strategy, the brightness after regulation is calculated using the first algorithmic formula;
If the regulation strategy is the second regulation strategy, the brightness after regulation is calculated using the second algorithmic formula.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610036750.3A CN106993176A (en) | 2016-01-20 | 2016-01-20 | A kind of method and electronic equipment for adjusting luminance video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610036750.3A CN106993176A (en) | 2016-01-20 | 2016-01-20 | A kind of method and electronic equipment for adjusting luminance video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106993176A true CN106993176A (en) | 2017-07-28 |
Family
ID=59413894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610036750.3A Pending CN106993176A (en) | 2016-01-20 | 2016-01-20 | A kind of method and electronic equipment for adjusting luminance video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106993176A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109618228A (en) * | 2018-11-27 | 2019-04-12 | Oppo广东移动通信有限公司 | Video source modeling control method, device and electronic equipment |
CN112201211A (en) * | 2019-07-08 | 2021-01-08 | 北京小米移动软件有限公司 | Ambient light collection method and device, terminal and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491042A (en) * | 2002-09-13 | 2004-04-21 | ���ǵ�����ʽ���� | Apparatus and method for adjusting luminance and colour temperature |
CN1671187A (en) * | 2004-03-15 | 2005-09-21 | 德鑫科技股份有限公司 | Method of exposure correction for digital image |
CN1731841A (en) * | 2005-08-22 | 2006-02-08 | 上海广电(集团)有限公司中央研究院 | Image enhancement method for controlling digital image mean brightness |
CN1790471A (en) * | 2004-11-23 | 2006-06-21 | 三星电子株式会社 | Apparatus and method for improving recognition performance for dark region of image |
US20060239583A1 (en) * | 2005-04-25 | 2006-10-26 | Samsung Electronics Co., Ltd. | Method and apparatus for adjusting brightness of image |
CN102780889A (en) * | 2011-05-13 | 2012-11-14 | 中兴通讯股份有限公司 | Video image processing method, device and equipment |
CN102821286A (en) * | 2012-08-16 | 2012-12-12 | 深圳创维-Rgb电子有限公司 | White balance adjustment method and system |
CN105227943A (en) * | 2015-09-11 | 2016-01-06 | 惠州市康冠科技有限公司 | A kind of liquid crystal TV set that sets dispatches from the factory the method for high-high brightness |
-
2016
- 2016-01-20 CN CN201610036750.3A patent/CN106993176A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491042A (en) * | 2002-09-13 | 2004-04-21 | ���ǵ�����ʽ���� | Apparatus and method for adjusting luminance and colour temperature |
CN1671187A (en) * | 2004-03-15 | 2005-09-21 | 德鑫科技股份有限公司 | Method of exposure correction for digital image |
CN1790471A (en) * | 2004-11-23 | 2006-06-21 | 三星电子株式会社 | Apparatus and method for improving recognition performance for dark region of image |
US20060239583A1 (en) * | 2005-04-25 | 2006-10-26 | Samsung Electronics Co., Ltd. | Method and apparatus for adjusting brightness of image |
CN1731841A (en) * | 2005-08-22 | 2006-02-08 | 上海广电(集团)有限公司中央研究院 | Image enhancement method for controlling digital image mean brightness |
CN102780889A (en) * | 2011-05-13 | 2012-11-14 | 中兴通讯股份有限公司 | Video image processing method, device and equipment |
CN102821286A (en) * | 2012-08-16 | 2012-12-12 | 深圳创维-Rgb电子有限公司 | White balance adjustment method and system |
CN105227943A (en) * | 2015-09-11 | 2016-01-06 | 惠州市康冠科技有限公司 | A kind of liquid crystal TV set that sets dispatches from the factory the method for high-high brightness |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109618228A (en) * | 2018-11-27 | 2019-04-12 | Oppo广东移动通信有限公司 | Video source modeling control method, device and electronic equipment |
WO2020108512A1 (en) * | 2018-11-27 | 2020-06-04 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for video enhancement, and electronic device using the same |
CN109618228B (en) * | 2018-11-27 | 2021-04-09 | Oppo广东移动通信有限公司 | Video enhancement control method and device and electronic equipment |
US11153525B2 (en) | 2018-11-27 | 2021-10-19 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for video enhancement, and electronic device using the same |
CN112201211A (en) * | 2019-07-08 | 2021-01-08 | 北京小米移动软件有限公司 | Ambient light collection method and device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11375128B2 (en) | Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium | |
CN104717432B (en) | Handle method, image processing equipment and the digital camera of one group of input picture | |
CN107438178B (en) | A kind of image color antidote and electronic equipment | |
Kiser et al. | Real time automated tone mapping system for HDR video | |
CN103167292B (en) | Automatic white balance adjustment System, automatic white balance adjustment method and camera module | |
CN103248793B (en) | The colour of skin optimization method of gamut conversion system and device | |
US20090009525A1 (en) | Color Adjustment Device and Method | |
EP1489855A2 (en) | Automatic color correction for sequences of images | |
US8649625B2 (en) | Method, device and program for measuring image quality adjusting ability, and method, device and program for adjusting image quality | |
CN107820069B (en) | Video monitoring equipment ISP debugging method | |
KR20090032385A (en) | Apparatus and method of stretching histogram for enhancing contrast of image | |
WO2022127174A1 (en) | Image processing method and electronic device | |
CN111064942B (en) | Image processing method and apparatus | |
CN105827988A (en) | Light control method and device in mobile terminal shooting | |
JP2015154102A (en) | Image processing apparatus and method, image processing program, imaging device | |
US10051252B1 (en) | Method of decaying chrominance in images | |
CN105976405A (en) | RGB image processing method and system | |
CN113132696A (en) | Image tone mapping method, device, electronic equipment and storage medium | |
CN110222555A (en) | The detection method and device of area of skin color | |
US20060159340A1 (en) | Digital image photographing apparatus and method | |
JP5878586B2 (en) | Image color adjustment method and electronic apparatus therefor | |
CN106993176A (en) | A kind of method and electronic equipment for adjusting luminance video | |
CN102510502B (en) | Method and system for generating high-dynamic-range image | |
CN107027017A (en) | A kind of method of adjustment, device, picture processing chip and the storage device of image white balance | |
US20050068587A1 (en) | Monotone conversion process for color images |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170728 |
|
WD01 | Invention patent application deemed withdrawn after publication |