python-telemetrix-ambilight/test.py

9 lines
161 B
Python

import cupy
import colorsys
from scipy.stats import mode
import numpy as np
a = np.asarray([[134,452,532],[123,531,532],[111,553,742]])
print(mode(a).mode[0])