Patent ID: 9571744
Date: 2017-02-14
CPC Classifications: G06T,G09G,H04N

Claim:
1. A video processing method comprising steps of: obtaining a pixel-brightness average value, a brightest pixel and a brightness-enhancing threshold value based on the brightness value of all pixels in a displayed image; and obtaining the number of low-brightness pixels according to the brightness value of all the pixels in the displayed image and a brightness-distinguishing setting value, wherein the low-brightness pixels are pixels having a brightness value less than the brightness-distinguishing setting value; using a first setting attenuation coefficient to perform a brightness-reducing treatment on all the pixels in the displayed image when the number of the low-brightness pixels is greater than a predetermined number setting value; determining an attenuation coefficient based on the pixel brightness average value and using the attenuation coefficient to perform a brightness-reducing treatment on all the pixels in the displayed image when the number of the low-brightness pixels is less than or equal to the predetermined number setting value; using a preset gain coefficient to perform a brightness-enhancing treatment on all first pixels in the displayed image when the brightness value of the brightest pixel is less than or equal to the first brightness threshold value; wherein the first pixels belong to the pixels in the displayed image, wherein the first pixels are pixels having a brightness value being greater than the brightness-enhancing threshold value; determining a gain coefficient based on the pixel brightness average value and using the gain coefficient to perform the brightness-enhancing treatment on all the first pixels when the brightness value of the brightest pixel is greater than the first brightness threshold value; and respectively setting a higher smooth-treatment brightness value and a lower smooth-treatment brightness value and performing a brightness-smoothing treatment on pixels having a brightness value being between the higher smooth-treatment brightness value and the lower smooth-treatment brightness value; wherein the higher smooth-treatment brightness value is greater than the brightness-enhancing threshold value, and the lower smooth-treatment brightness value is less than the brightness-enhancing threshold value.