Created
March 11, 2021 12:40
-
-
Save conorhennessy/aa1e7ee9abc08386c71c13fbdb76d2c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gimp_hue = input("Gimp H:) | |
gimp_saturation = input("Gimp S:) | |
gimp_value = input("Gimp V:) | |
opencv_hue = gimp_hue / 2 | |
opencv_saturation = (gimp_saturation / 100) * 255 | |
opencv_value = (gimp_value / 100) * 255 | |
print('OpenCV\nH: {}\nS: {}\nV: {}\n'.format(opencv_hue, opencv_saturation, opencv_value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment