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

5 lines
159 B
Python

def unittest(data_path, temp_path):
import image
rgb = image.lab_to_rgb((74, -38, 30))
return (rgb[0] == 123 and rgb[1] == 198 and rgb[2] == 123)