openmv/scripts/unittest/script/02-rgb_to_grayscale.py
Kwabena W. Agyeman b3f6d4698b Fix unit tests
2020-10-24 12:34:58 -07:00

5 lines
126 B
Python

def unittest(data_path, temp_path):
import image
gs = image.rgb_to_grayscale((120, 200, 120))
return (gs == 169)