openmv/scripts/unittest/script/03-grayscale_to_rgb.py
2019-03-30 17:44:31 +02:00

5 lines
155 B
Python

def unittest(data_path, temp_path):
import image
rgb = image.grayscale_to_rgb(182)
return (rgb[0] == 181 and rgb[1] == 182 and rgb[2] == 181)