title: How do I adjust brightness, contrast and vibrance with opencv python?
body: <p>I am new to image processing.  I program in Python3 and uses the OpenCV image processing library.I want to adjust the following attributes.</p>
  
  <ol>
  <li>Brightness</li>
  <li>Contrast</li>
  <li>Vibrance</li>
  <li>Hue</li>
  <li>Saturation</li>
  <li>Lightness</li>
  </ol>
  
  <p>For 4, 5, 6. I am using the following code to convert to HSV space.</p>
  
  <pre><code>hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
  h, s, v = cv2.split(hsv)
  h += value # 4
  s += value # 5
  v += value # 6
  final_hsv = cv2.merge((h, s, v))
  img = cv2.cvtColor(final_hsv, cv2.COLOR_HSV2BGR)
  </code></pre>
  
  <p>The only tutorial I found for 1 and 2 is <a href="https://docs.opencv.org/3.4.1/d3/dc1/tutorial_basic_linear_transform.html" rel="nofollow noreferrer">here</a>.  The tutorial uses C++, but I program in Python.  Also, I do not know how to adjust 3. vibrance.  I would very much appreciate the help, thanks!.</p>