Fine tuned color identification
This commit is contained in:
parent
fdcefd1663
commit
0400d29b10
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Epd7in5bAdapter (EpdAdapter):
|
|||
def __get_color__ (self, pixel):
|
||||
color_percent = self.__get_color_percentage__(pixel)
|
||||
brightness = self.__brightness__(pixel)
|
||||
if brightness > 220 or (brightness > 150 and color_percent[0] > 35):
|
||||
if brightness > 235 or (brightness > 150 and color_percent[0] > 35):
|
||||
return 'white'
|
||||
elif color_percent[0] > 50:
|
||||
return 'red'
|
||||
|
|
Loading…
Reference in a new issue