openmv/scripts/unittest/script/03-grayscale_to_rgb.py

5 lines
155 B
Python

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