Patent Document ID: 8948504
Application ID: 14048933
Patent Status: 1

Claim One:
1. A device for determining image hue, comprising a processor and a memory storing instructions, wherein the instructions are executable by the processor to perform: obtaining color information of at least a portion of pixels of an image, wherein the color information comprises hue values, brightness values and saturation values; selecting a pixel from the at least a portion of pixels according to a first preset value and products of the obtained brightness values and saturation values of the at least a portion of the pixels, wherein each of the products is a product of the obtained brightness value and saturation value of each of the part or all of the pixels; obtaining a weight of the selected pixel; comparing an obtained hue value of the selected pixel with hue values of preset multiple candidate colors, wherein the hue values of the preset multiple candidate colors are evenly covered on a hue circle and each of the preset multiple candidate colors has an initial weight; selecting a first candidate color from the preset multiple candidate colors, wherein a hue value of the first candidate color is closest to the obtained hue value of the selected pixel; obtaining an updated weight of the first candidate color by accumulating the weight of the selected pixel to the initial weight of the first candidate color; selecting, from the preset multiple candidate colors, a second candidate color having a highest weight according to the updated weight of the first candidate color and the initial weights of the preset multiple candidate colors except the first candidate color; and using a hue value of the second candidate color as the image hue.