Save comparison script

This commit is contained in:
mmcwilliams 2023-10-23 10:32:35 -04:00
parent f3123e38c3
commit 7523ca8878
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import cv2
import numpy as np
class ComparisonComparison:
def convert_color (self, color, color_space) :
pixel = np.zeros([1, 1, 3], dtype=np.uint8)
pixel[:] = color
cvt = cv2.cvtColor(pixel, color_space)
return cvt[0, 0]
if __name__ == "__main__":
ComparisonComparison()