forked from 0x2620/pandora
color
This commit is contained in:
parent
7c1e3c7681
commit
4be4b8639e
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,7 @@ from glob import glob
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import Image
|
import Image
|
||||||
|
import ox
|
||||||
|
|
||||||
img_extension='jpg'
|
img_extension='jpg'
|
||||||
|
|
||||||
|
@ -295,7 +295,8 @@ def average_color(prefix):
|
||||||
for i in range(0, len(pixels)):
|
for i in range(0, len(pixels)):
|
||||||
p = np.sum(pixels[i], axis=0) / frames
|
p = np.sum(pixels[i], axis=0) / frames
|
||||||
color += p
|
color += p
|
||||||
return list(map(float, color))
|
color = list(map(float, color))
|
||||||
|
return ox.image.getHSL(color)
|
||||||
|
|
||||||
|
|
||||||
def get_distance(rgb0, rgb1):
|
def get_distance(rgb0, rgb1):
|
||||||
|
|
Loading…
Reference in a new issue