CN104702964B - A kind of image processing method and device - Google Patents

A kind of image processing method and device Download PDF

Info

Publication number
CN104702964B
CN104702964B CN201510144740.7A CN201510144740A CN104702964B CN 104702964 B CN104702964 B CN 104702964B CN 201510144740 A CN201510144740 A CN 201510144740A CN 104702964 B CN104702964 B CN 104702964B
Authority
CN
China
Prior art keywords
bit rate
frame image
encoder
preset
mean value
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.)
Expired - Fee Related
Application number
CN201510144740.7A
Other languages
Chinese (zh)
Other versions
CN104702964A (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.)
Beijing Bukavu Interactive Technology Co ltd
Original Assignee
Interactive Science And Technology Ltd Of Beijing Cloth Card
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 Interactive Science And Technology Ltd Of Beijing Cloth Card filed Critical Interactive Science And Technology Ltd Of Beijing Cloth Card
Priority to CN201510144740.7A priority Critical patent/CN104702964B/en
Publication of CN104702964A publication Critical patent/CN104702964A/en
Priority to PCT/CN2015/081798 priority patent/WO2016155125A1/en
Application granted granted Critical
Publication of CN104702964B publication Critical patent/CN104702964B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

This application discloses a kind of image processing method and device, and following processes are performed for the image for being sent to encoder:The luminance mean value for calculating current frame image and previous frame image is poor, and compared to previous frame image, the pixel that brightness change is produced in current frame image accounts for the ratio of all pixels point in current frame image, determining that the luminance mean value is poor threshold value is rocked more than first, and the ratio more than second when rocking threshold value, according to the first preset adjustment mode, the coding bit rate that encoder is calculated raises.After when judging to shoot current frame image, camera is rocked, the coding bit rate that encoder is calculated raises the application, so as to avoid video from mosaic effect occur, ensure that the quality of output video.

Description

A kind of image processing method and device
Technical field
This application involves technical field of image processing, more specifically to a kind of image processing method and device.
Background technology
With the popularization of network, Internet video call etc. is also widely used.When carrying out Internet video call, Firstly the need of camera collection image information, and after encoded device is encoded, issue other side's client and play out.
But if camera occurs significantly to rock suddenly when gathering image information, the image warp knit gathered When being played after code, it may appear that serious mosaic effect, greatly reduces video quality, influences the experience of user.
The content of the invention
In view of this, this application provides a kind of image processing method and device, for solving since camera rocks institute Caused by video mosaic effect, the problem of influencing user experience.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of image processing method, for the image for being sent to encoder, performs following processes:
It is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to previous frame image, present frame figure The pixel that brightness change is produced as in accounts for the ratio of all pixels point in current frame image;
Judge whether the luminance mean value difference more than first rocks threshold value;And
Judge whether the ratio more than second rocks threshold value;
If luminance mean value difference rocks threshold value more than first, and the ratio rocks threshold value more than second, then according to the One preset adjustment mode, the coding bit rate that encoder is calculated raise.
Preferably, further include:
Judge whether the luminance mean value difference is less than the first static threshold;And
Judge whether the ratio is less than the second static threshold;
If luminance mean value difference is less than the first static threshold, and the ratio is less than the second static threshold, then according to the Two preset adjustment modes, the coding bit rate that encoder is calculated are lowered.
Preferably, described according to the first preset adjustment mode, the coding bit rate that encoder is calculated raises, including:
The coding bit rate that encoder is calculated raises the first preset value;
Alternatively,
Determine the preset numerical intervals belonging to the luminance mean value difference;
According to preset adjusted value corresponding with the numerical intervals, on the coding bit rate calculated to encoder carries out Adjust.
Preferably, described according to the second preset adjustment mode, the coding bit rate that encoder is calculated is lowered, including:
The coding bit rate that encoder is calculated lowers the second preset value;
Alternatively,
Determine the preset numerical intervals belonging to the luminance mean value difference;
According to preset adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is carried out down Adjust.
A kind of image processing apparatus, is handled for the image for being sent to encoder, which includes:
Computing unit, the luminance mean value for calculating current frame image and previous frame image is poor, and compared to previous frame Image, the pixel that brightness change is produced in current frame image account for the ratio of all pixels point in current frame image;
First judging unit, for judging whether the luminance mean value difference more than first rocks threshold value;
Second judging unit, for judging whether the ratio more than second rocks threshold value;
Bit rate raises unit, and for rocking threshold value more than first in the definite luminance mean value difference, and the ratio is big When second rocks threshold value, according to the first preset adjustment mode, the coding bit rate that encoder is calculated raises.
Preferably, further include:
3rd judging unit, for judging whether the luminance mean value difference is less than the first static threshold;
4th judging unit, for judging whether the ratio is less than the second static threshold;
Bit rate lowers unit, and for being less than the first static threshold in the definite luminance mean value difference, and the ratio is small When the second static threshold, according to the second preset adjustment mode, the coding bit rate that encoder is calculated is lowered.
Preferably, the bit rate up-regulation unit includes:
First bit rate raises subelement, and the coding bit rate for encoder to be calculated raises the first preset value;
Second bit rate raises subelement, for determining the preset numerical intervals belonging to the luminance mean value difference;According to Preset adjusted value corresponding with the numerical intervals, raises the coding bit rate that encoder calculates.
Preferably, the bit rate is lowered unit and is included:
First bit rate lowers subelement, and the coding bit rate for encoder to be calculated lowers the second preset value;
Second bit rate lowers subelement, for determining the preset numerical intervals belonging to the luminance mean value difference;According to Preset adjusted value corresponding with the numerical intervals, lowers the coding bit rate that encoder calculates.
It can be seen from the above technical scheme that image processing method provided by the embodiments of the present application, is compiled for being sent to The image of code device performs following processes:It is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to upper one Two field picture, the pixel that brightness change is produced in current frame image account for the ratio of all pixels point in current frame image, judge institute State whether luminance mean value difference more than first rocks threshold value, and, judge whether the ratio more than second rocks threshold value, if described Luminance mean value difference rocks threshold value more than first, and the ratio rocks threshold value more than second, then according to the first preset adjustment mode, The coding bit rate that encoder is calculated raises.The application is poor by the luminance mean value of two field pictures before and after contrast, is finding When luminance mean value difference is excessive, further determine that the pixel that brightness change occurs in current frame image accounts for all pixels point in image Ratio it is whether excessive, if it is, determine that camera is rocked when shooting current frame image, thus in order to avoid There is mosaic effect in video, and the coding bit rate that encoder is calculated raises, and to ensure the quality of output video, improves The Experience Degree of user.
Brief description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of image processing method flow chart disclosed in the embodiment of the present application;
Fig. 2 another image processing method flow charts disclosed in the embodiment of the present application;
Fig. 3 is a kind of structure diagram of image processing apparatus disclosed in the embodiment of the present application;
Fig. 4 is the structure diagram that a kind of bit rate disclosed in the embodiment of the present application raises unit;
Fig. 5 is the structure diagram of another image processing apparatus disclosed in the embodiment of the present application;
Fig. 6 is the structure diagram that a kind of bit rate disclosed in the embodiment of the present application lowers unit.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without making creative work Embodiment, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of image processing method, and this method is directed to be sent in the image of encoder and carries out Processing, concrete processing procedure is referring to Fig. 1.
As shown in Figure 1, this method includes:
Step S100, it is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to previous frame image, The pixel that brightness change is produced in current frame image accounts for the ratio of all pixels point in current frame image;
Specifically, for current frame image, its luminance mean value is calculated first, and then it is bright with previous frame image to calculate it The difference of average is spent, obtains the equal difference of brightness.When calculating the luminance mean value of current frame image, current frame image is specially calculated In each pixel brightness value average.
In addition it is also necessary to calculate compared to previous frame image, the pixel that brightness change is produced in current frame image is accounted for and worked as The ratio value of all pixels point in prior image frame.
Step S110, judge whether the luminance mean value difference more than first rocks threshold value;
Step S120, judge whether the ratio more than second rocks threshold value;
If the luminance mean value difference rocks threshold value more than first, and the ratio rocks threshold value more than second, then performs step Rapid S130;
Specifically, above-mentioned first threshold value is rocked and second to rock threshold value be value set in advance.If it is determined that present frame The luminance mean value difference of image and previous frame image rocks threshold value more than first, then meaning front and rear two field pictures, there occurs very big Change.Determine whether in current frame image, produce whether the ratio shared by the pixel of brightness change more than second rocks threshold Value, if it is, determining that camera is significantly rocked really when gathering current frame image.
Step S130, according to the first preset adjustment mode, the coding bit rate that encoder is calculated raises.
Specifically, the first preset adjustment mode includes various ways, calculates encoder according to the first preset adjustment mode The coding bit rate up-regulation gone out so that the quality for exporting video gets a promotion, and avoids mosaic effect.
Image processing method provided by the embodiments of the present application, following processes are performed for the image for being sent to encoder:Meter It is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to previous frame image, is produced in current frame image bright The pixel of degree change accounts for the ratio of all pixels point in current frame image, judges whether the luminance mean value difference is more than first and shakes Dynamic threshold value, and, judge whether the ratio more than second rocks threshold value, if the luminance mean value is poor to rock threshold more than first Value, and the ratio rocks threshold value more than second, then according to the first preset adjustment mode, the coded-bit that encoder is calculated Rate raises.The application is poor by the luminance mean value of two field pictures before and after contrast, when finding that luminance mean value difference is excessive, further really In settled prior image frame occur brightness change pixel account for all pixels point in image ratio it is whether excessive, if it is, Determine that camera is rocked when shooting current frame image, thus in order to avoid mosaic effect occurs in video, will compile The coding bit rate up-regulation that code device calculates, to ensure the quality of output video, improves the Experience Degree of user.
For the ease of understanding the scheme of the application, we are explained with a concrete scene.
Under scene provided in this embodiment, camera is directed at the teacher to give lessons, to gather teacher's teaching video.It is false Such as a certain moment, classmate's imprudence has touched lower camera, has caused camera significantly to rock, it is to be understood that right In this two field picture of current time collection, if without any processing, occurring that mosaic is imitated after encoded display Should.And the processing mode of the application is:
For current frame image, its luminance mean value difference Δ AVG with previous frame image is calculated, and compared to previous frame figure Picture, the pixel that brightness change is produced in current frame image account for the ratio Δ RATIO of all pixels point in current frame image.Judge Whether meet:AndWherein,WithRespectively first rocks threshold value Threshold value is rocked with second.When determining to meet above-mentioned condition, determine that camera is rocked when gathering current frame image.Cause And the coding bit rate calculated for encoder raises, to ensure the quality of output video.
In another embodiment of the application, we introduce the several first preset adjustment modes, namely are determining currently After mosaic effect occurs in two field picture, the coding bit rate that encoder calculates how is adjusted.
The first regulative mode:
The first preset value is preset, rocks threshold value more than first judging that the luminance mean value is poor, and the ratio is big When second shakes big threshold value, the coding bit rate that encoder is calculated raises the first preset value.
Obviously, the first regulative mode is a kind of fairly simple, convenient regulative mode, but its Adjusting accuracy is not It is very accurate.It is some be not too high scene to output video quality demands under, can directly use this regulative mode.
Second of regulative mode:
Preset the numerical intervals of luminance mean value difference and the correspondence of adjusted value.Judging that the luminance mean value difference is big Threshold value is rocked in first, and when the ratio is more than second and shakes big threshold value, determine the bright of current frame image and previous frame image The numerical intervals belonging to equal value difference are spent, according to the corresponding adjusted value of the numerical intervals, the coding bit rate calculated to encoder Raised.
Citing is such as:Preset following correspondence:
Table 1
When definite luminance mean value difference is 7, it is determined that go out adjusted value for 30.The coding that encoder can be thus calculated Bit rate raises 30QP.
Obviously, second of regulative mode is more accurate compared to the first regulative mode, can be suitable for exporting video In the higher scene of quality.
Further, it is also possible to preset compared to previous frame image, the pixel of brightness change is produced in current frame image Account for the ratio of all pixels point in current frame image, the correspondence between adjusted value.And refer to above-mentioned second of adjusting side Formula carries out the adjusting of coding bit rate, this is no longer described in detail.
In addition, during camera gathers video, the prior art is also faced with such a problem:Work as cam lens When content is opposing stationary, user can generally reduce the content detail quality requirement in camera lens, and be more heavily weighted toward audio content, because It is a kind of waste of resource in insignificant background detail that this, which spends most of bandwidth,.Based on this, this application provides another Kind image processing method.According to Fig. 1 and Fig. 2, image processing method can further include:
Step S140, judge whether the luminance mean value difference is less than the first static threshold;
Step S150, judge whether the ratio is less than the second static threshold;
If the luminance mean value difference is less than the first static threshold, and the ratio is less than the second static threshold, then performs step Rapid S160;
Specifically, above-mentioned first static threshold and the second static threshold are value set in advance.If it is determined that present frame The luminance mean value difference of image and previous frame image is less than the first static threshold, then means the variation of front and rear two field pictures generation not Greatly.Determine whether in current frame image, produce whether the ratio shared by the pixel of brightness change is less than the second static threshold, If it is, determine that current frame image and previous frame picture material are opposing stationary.
Step S160, then according to the second preset adjustment mode, the coding bit rate that encoder is calculated is lowered.
Specifically, the second preset adjustment mode includes various ways, calculates encoder according to the second preset adjustment mode The coding bit rate gone out is lowered so that output video content quality somewhat reduces, and bandwidth is reduced in the case where not influencing viewing The use of resource.
It should be noted that the execution sequence of above-mentioned steps S140-S160 can perform side by side with step S110-S130, Or successively perform, to this application without limiting.
For the ease of understanding the scheme of the application, we are explained with a concrete scene.
Under scene provided in this embodiment, the blackboard on camera alignment dais, to gather teacher's teaching video.If A certain moment teacher goes somewhere temporarily, thus never changes on the blackboard of camera alignment.In this regard, the application Processing mode is:
For current frame image, its luminance mean value difference Δ AVG with previous frame image is calculated, and compared to previous frame figure Picture, the pixel that brightness change is produced in current frame image account for the ratio Δ RATIO of all pixels point in current frame image.Judge Whether meet:AndWherein,WithRespectively first static threshold Value and the second static threshold.When determining to meet above-mentioned condition, the current frame image of collection is determined compared to previous frame image, it is interior Hold almost unchanged.Thus, in order to reduce the use of bandwidth resources, lowered for the coding bit rate that encoder calculates.
In another embodiment of the application, we introduce the several second preset adjustment modes, namely are determining currently When two field picture and opposing stationary previous frame picture material, the coding bit rate that encoder calculates how is adjusted.
The first regulative mode:
The second preset value is preset, is less than the first static threshold judging that the luminance mean value is poor, and the ratio is small When the second static threshold, the coding bit rate that encoder is calculated lowers the second preset value.
Obviously, the first regulative mode is a kind of fairly simple, convenient regulative mode, but its Adjusting accuracy is not It is very accurate.Under some scenes less high to bandwidth resources requirement, this regulative mode can be directly used.
Second of regulative mode:
The numerical intervals of luminance mean value difference and the correspondence of adjusted value are preset, are judging that the luminance mean value difference is small In the first static threshold, and when the ratio is less than the second static threshold, the bright of current frame image and previous frame image is determined The numerical intervals belonging to equal value difference are spent, according to the corresponding adjusted value of the numerical intervals, the coding bit rate calculated to encoder Lowered.
Citing is such as:Preset following correspondence:
Table 2
When definite luminance mean value difference is 7, it is determined that go out adjusted value for 35.The coding that encoder can be thus calculated Bit rate lowers 35QP.
Obviously, second of regulative mode is more accurate compared to the first regulative mode, can be suitable for bandwidth requirement In higher scene.
Further, it is also possible to preset compared to previous frame image, the pixel of brightness change is produced in current frame image Account for the ratio of all pixels point in current frame image, the correspondence between adjusted value.And refer to above-mentioned second of adjusting side Formula carries out the adjusting of coding bit rate, this is no longer described in detail.
Image processing apparatus provided by the embodiments of the present application is described below, image processing apparatus described below with Above-described image processing apparatus can correspond reference.
Referring to Fig. 3, Fig. 3 is a kind of structure diagram of image processing apparatus disclosed in the embodiment of the present application.
The device is handled for the image for being sent to encoder.As shown in figure 3, the device includes:
Computing unit 31, the luminance mean value for calculating current frame image and previous frame image is poor, and compared to upper one Two field picture, the pixel that brightness change is produced in current frame image account for the ratio of all pixels point in current frame image;
Specifically, for current frame image, its luminance mean value is calculated first, and then it is bright with previous frame image to calculate it The difference of average is spent, obtains the equal difference of brightness.When calculating the luminance mean value of current frame image, current frame image is specially calculated In each pixel brightness value average.
In addition it is also necessary to calculate compared to previous frame image, the pixel that brightness change is produced in current frame image is accounted for and worked as The ratio value of all pixels point in prior image frame.
First judging unit 32, for judging whether the luminance mean value difference more than first rocks threshold value;
Second judging unit 33, for judging whether the ratio more than second rocks threshold value;
Specifically, above-mentioned first threshold value is rocked and second to rock threshold value be value set in advance.If it is determined that present frame The luminance mean value difference of image and previous frame image rocks threshold value more than first, then meaning front and rear two field pictures, there occurs very big Change.Determine whether in current frame image, produce whether the ratio shared by the pixel of brightness change more than second rocks threshold Value, if it is, determining that camera is significantly rocked really when gathering current frame image.
Bit rate raises unit 34, for rocking threshold value, and the ratio more than first in the definite luminance mean value difference When rocking threshold value more than second, according to the first preset adjustment mode, the coding bit rate that encoder is calculated raises.
Specifically, the first preset adjustment mode includes various ways, calculates encoder according to the first preset adjustment mode The coding bit rate up-regulation gone out so that the quality for exporting video gets a promotion, and avoids mosaic effect.
Image processing apparatus provided by the embodiments of the present application, following processes are performed for the image for being sent to encoder:Meter It is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to previous frame image, is produced in current frame image bright The pixel of degree change accounts for the ratio of all pixels point in current frame image, judges whether the luminance mean value difference is more than first and shakes Dynamic threshold value, and, judge whether the ratio more than second rocks threshold value, if the luminance mean value is poor to rock threshold more than first Value, and the ratio rocks threshold value more than second, then according to the first preset adjustment mode, the coded-bit that encoder is calculated Rate raises.The application is poor by the luminance mean value of two field pictures before and after contrast, when finding that luminance mean value difference is excessive, further really In settled prior image frame occur brightness change pixel account for all pixels point in image ratio it is whether excessive, if it is, Determine that camera is rocked when shooting current frame image, thus in order to avoid mosaic effect occurs in video, will compile The coding bit rate up-regulation that code device calculates, to ensure the quality of output video, improves the Experience Degree of user.
Optionally, the embodiment of the present application discloses a kind of alternative construction of bit rate up-regulation unit, as shown in figure 4, bit Rate up-regulation unit 34 can include:
First bit rate raises subelement 341, and the coding bit rate for encoder to be calculated raises the first preset value;
Second bit rate raises subelement 342, for determining the preset numerical intervals belonging to the luminance mean value difference;Press According to preset adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is raised.
Obviously, the regulative mode of the first bit rate up-regulation subelement is a kind of fairly simple, convenient regulative mode, still Its Adjusting accuracy is not very accurate.It is some be not too high scene to output video quality demands under, can be direct Use this regulative mode.And the regulative mode of the second bit rate up-regulation subelement is more smart compared to the first regulative mode Really, can be suitable for the scene higher to output video quality.
In addition, during camera gathers video, the prior art is also faced with such a problem:Work as cam lens When content is opposing stationary, user can generally reduce the content detail quality requirement in camera lens, and be more heavily weighted toward audio content, because It is a kind of waste of resource in insignificant background detail that this, which spends most of bandwidth,.Based on this, the embodiment of the present application also carries Another image processing apparatus is supplied, according to Fig. 3 and Fig. 5, which can also include:
3rd judging unit 35, for judging whether the luminance mean value difference is less than the first static threshold;
4th judging unit 36, for judging whether the ratio is less than the second static threshold;
Specifically, above-mentioned first static threshold and the second static threshold are value set in advance.If it is determined that present frame The luminance mean value difference of image and previous frame image is less than the first static threshold, then means the variation of front and rear two field pictures generation not Greatly.Determine whether in current frame image, produce whether the ratio shared by the pixel of brightness change is less than the second static threshold, If it is, determine that current frame image and previous frame picture material are opposing stationary.
Bit rate lowers unit 37, for being less than the first static threshold, and the ratio in the definite luminance mean value difference During less than the second static threshold, according to the second preset adjustment mode, the coding bit rate that encoder is calculated is lowered.
Specifically, the second preset adjustment mode includes various ways, calculates encoder according to the second preset adjustment mode The coding bit rate gone out is lowered so that output video content quality somewhat reduces, and bandwidth is reduced in the case where not influencing viewing The use of resource.
Optionally, the embodiment of the present application discloses a kind of alternative construction of bit rate up-regulation unit, as shown in fig. 6, bit Rate up-regulation unit 37 can include:
First bit rate lowers subelement 371, and the coding bit rate for encoder to be calculated lowers the second preset value;
Second bit rate lowers subelement 372, for determining the preset numerical intervals belonging to the luminance mean value difference;Press According to preset adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is lowered.
Obviously, the regulative mode that the first bit rate lowers subelement is a kind of fairly simple, convenient regulative mode, still Its Adjusting accuracy is not very accurate.Under some scenes less high to bandwidth resources requirement, this can be directly used Kind regulative mode., can and the regulative mode that the second bit rate lowers subelement is more accurate compared to the first regulative mode Suitable for the scene higher to bandwidth requirement.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there are other identical element in the process, method, article or apparatus that includes the element.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide scope caused.

Claims (8)

1. a kind of image processing method, it is characterised in that for the image for being sent to encoder, perform following processes:
It is poor to calculate the luminance mean value of current frame image and previous frame image, and compared to previous frame image, in current frame image The pixel for producing brightness change accounts for the ratio of all pixels point in current frame image;
Judge whether the luminance mean value difference more than first rocks threshold value;And
Judge whether the ratio more than second rocks threshold value;
If the luminance mean value difference rocks threshold value more than first, and the ratio rocks threshold value more than second, it is determined that is shooting Camera is rocked during current frame image, according to the first preset adjustment mode, the coding bit rate that encoder is calculated Up-regulation.
2. according to the method described in claim 1, it is characterized in that, further include:
Judge whether the luminance mean value difference is less than the first static threshold;And
Judge whether the ratio is less than the second static threshold;
If the luminance mean value difference is less than the first static threshold, and the ratio is less than the second static threshold, then pre- according to second Adjustment mode is put, the coding bit rate that encoder is calculated is lowered.
3. according to the method described in claim 1, it is characterized in that, described according to the first preset adjustment mode, by encoder meter The coding bit rate up-regulation calculated, including:
The coding bit rate that encoder is calculated raises the first preset value;
Alternatively,
Determine the preset numerical intervals belonging to the luminance mean value difference;
According to preset adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is raised.
4. according to the method described in claim 2, it is characterized in that, described according to the second preset adjustment mode, by encoder meter The coding bit rate calculated is lowered, including:
The coding bit rate that encoder is calculated lowers the second preset value;
Alternatively,
Determine the preset numerical intervals belonging to the luminance mean value difference;
According to preset adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is lowered.
5. a kind of image processing apparatus, it is characterised in that handled for the image for being sent to encoder, which includes:
Computing unit, the luminance mean value for calculating current frame image and previous frame image is poor, and compared to previous frame image, The pixel that brightness change is produced in current frame image accounts for the ratio of all pixels point in current frame image;
First judging unit, for judging whether the luminance mean value difference more than first rocks threshold value;
Second judging unit, for judging whether the ratio more than second rocks threshold value;
Bit rate raises unit, and for determining that luminance mean value difference rocks threshold value more than first, and the ratio is more than the Two when rocking threshold value, determines that camera is rocked when shooting current frame image, according to the first preset adjustment mode, will be compiled The coding bit rate up-regulation that code device calculates.
6. device according to claim 5, it is characterised in that further include:
3rd judging unit, for judging whether the luminance mean value difference is less than the first static threshold;
4th judging unit, for judging whether the ratio is less than the second static threshold;
Bit rate lowers unit, and for determining that luminance mean value difference is less than the first static threshold, and the ratio is less than the During two static thresholds, according to the second preset adjustment mode, the coding bit rate that encoder is calculated is lowered.
7. device according to claim 5, it is characterised in that the bit rate up-regulation unit includes:
First bit rate raises subelement, and the coding bit rate for encoder to be calculated raises the first preset value;
Second bit rate raises subelement, for determining the preset numerical intervals belonging to the luminance mean value difference;According to preset Adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is raised.
8. device according to claim 6, it is characterised in that the bit rate, which lowers unit, to be included:
First bit rate lowers subelement, and the coding bit rate for encoder to be calculated lowers the second preset value;
Second bit rate lowers subelement, for determining the preset numerical intervals belonging to the luminance mean value difference;According to preset Adjusted value corresponding with the numerical intervals, the coding bit rate that encoder calculates is lowered.
CN201510144740.7A 2015-03-30 2015-03-30 A kind of image processing method and device Expired - Fee Related CN104702964B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510144740.7A CN104702964B (en) 2015-03-30 2015-03-30 A kind of image processing method and device
PCT/CN2015/081798 WO2016155125A1 (en) 2015-03-30 2015-06-18 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510144740.7A CN104702964B (en) 2015-03-30 2015-03-30 A kind of image processing method and device

Publications (2)

Publication Number Publication Date
CN104702964A CN104702964A (en) 2015-06-10
CN104702964B true CN104702964B (en) 2018-05-15

Family

ID=53349675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510144740.7A Expired - Fee Related CN104702964B (en) 2015-03-30 2015-03-30 A kind of image processing method and device

Country Status (2)

Country Link
CN (1) CN104702964B (en)
WO (1) WO2016155125A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702964B (en) * 2015-03-30 2018-05-15 北京布卡互动科技有限公司 A kind of image processing method and device
CN106548763B (en) * 2015-09-22 2020-09-15 中兴通讯股份有限公司 Image display method and device and terminal
CA3001480C (en) 2015-10-16 2019-06-18 Tribune Broadcasting Company, Llc Video-production system with dve feature
CN107767712B (en) * 2017-11-07 2019-12-31 Oppo广东移动通信有限公司 Method and device for adjusting matching degree, storage medium and electronic equipment
CN114339431B (en) * 2021-12-16 2023-09-01 杭州当虹科技股份有限公司 Time-lapse coding compression method
CN114245048B (en) * 2021-12-27 2023-07-25 上海集成电路装备材料产业创新中心有限公司 Signal transmission circuit and image sensor
CN114786012B (en) * 2022-06-16 2022-09-02 深圳比特微电子科技有限公司 Code rate control method, device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1180276A (en) * 1996-09-27 1998-04-29 次级系统有限公司 Scene change detector for digital video
CN101511014A (en) * 2009-04-10 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for encoding video
CN102572381A (en) * 2010-12-29 2012-07-11 中国移动通信集团公司 Video monitoring scene judging method and monitoring image coding method and device thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7869503B2 (en) * 2004-02-06 2011-01-11 Apple Inc. Rate and quality controller for H.264/AVC video coder and scene analyzer therefor
CN101389029B (en) * 2008-10-21 2012-01-11 北京中星微电子有限公司 Method and apparatus for video image encoding and retrieval
CN102946505B (en) * 2012-11-22 2015-02-18 四川虹微技术有限公司 Self-adaptive motion detection method based on image block statistics
CN103905708B (en) * 2012-12-24 2017-06-27 联想(北京)有限公司 A kind of frame rate method of adjustment and electronic equipment
CN103945214B (en) * 2013-01-23 2016-03-30 中兴通讯股份有限公司 End side time-domain method for evaluating video quality and device
CN104702964B (en) * 2015-03-30 2018-05-15 北京布卡互动科技有限公司 A kind of image processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1180276A (en) * 1996-09-27 1998-04-29 次级系统有限公司 Scene change detector for digital video
CN101511014A (en) * 2009-04-10 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for encoding video
CN102572381A (en) * 2010-12-29 2012-07-11 中国移动通信集团公司 Video monitoring scene judging method and monitoring image coding method and device thereof

Also Published As

Publication number Publication date
WO2016155125A1 (en) 2016-10-06
CN104702964A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN104702964B (en) A kind of image processing method and device
JP5875732B2 (en) Liquid crystal display
CN102957934B (en) Display processing method, device and display device
US10003765B2 (en) System and method for brightening video image regions to compensate for backlighting
CN102903086B (en) Brightness adjustment method and device of image to be spliced
CN103327219B (en) A kind of video image contrast adjustment method and device
CN105530422B (en) Control method, control device and the electronic equipment of electronic equipment
CN108009997B (en) Method and device for adjusting image contrast
JP2006146178A (en) Generating method for transfer curve for adaptive contrast enhancement
CN102402918B (en) Method for improving picture quality and liquid crystal display (LCD)
CN106210712A (en) A kind of dead pixel points of images detection and processing method
CN103390395A (en) Method and electronic equipment for adjusting brightness of display
CN100369467C (en) Correction method for flash frequency
JP5574812B2 (en) Image processing apparatus and image processing method
CN106454290B (en) A kind of dual camera image processing system and method
CN102123288B (en) Image processing apparatus and image processing method
CN107342054A (en) Display device, display control method and display control unit
CN106791915A (en) A kind of method and apparatus for showing video image
JP2001154643A (en) Average luminance maintaining device of screen for ferroelectric liquid crystal display device
CN106548763A (en) A kind of method for displaying image and device and terminal
CN104811631B (en) A kind of image processing method and image processor
CN105654424B (en) Adjustment ratio display methods, display system, display device and the terminal of image
CN105847970A (en) Video display quality calculating method and equipment
CN100542211C (en) A kind of method of dynamic adjustment image quality
CN105631883B (en) A kind of method and apparatus of target area in determining image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180329

Address after: Wanquanhe road 100086 Beijing city Haidian District No. 68 Zijin building room 919

Applicant after: BEIJING BUKAVU INTERACTIVE TECHNOLOGY Co.,Ltd.

Address before: Wanquanhe road 100086 Beijing city Haidian District No. 68 Zijin building 918

Applicant before: BEIJING MIYOSHI INTERACTIVE EDUCATIONAL TECHNOLOGY Co.,Ltd.

Applicant before: BEIJING BUKAVU INTERACTIVE TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180515

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