Skip to content

Instantly share code, notes, and snippets.

@conorhennessy
Created March 11, 2021 12:40
Show Gist options
  • Save conorhennessy/aa1e7ee9abc08386c71c13fbdb76d2c0 to your computer and use it in GitHub Desktop.
Save conorhennessy/aa1e7ee9abc08386c71c13fbdb76d2c0 to your computer and use it in GitHub Desktop.
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