title: how to change a range of RGB color to Red with opencv python
body: <p>from <a href="https://stackoverflow.com/questions/39058177/how-to-change-the-black-color-to-red-with-opencv-python">this stackoverflow question</a> i found this code</p>
  
  <pre><code>import numpy as np
  import imutils
  import cv2
  img_rgb = cv2.imread('black.png')
  Conv_hsv_Gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)
  ret, mask = cv2.threshold(Conv_hsv_Gray, 0, 255,cv2.THRESH_BINARY_INV |cv2.THRESH_OTSU)
  img_rgb[mask == 255] = [0, 0, 255]
  cv2.imshow("imgOriginal", img_rgb)  # show windows
  cv2.imshow("mask", mask)  # show windows
  cv2.waitKey(0)
  </code></pre>
  
  <p>is there any way i could change the line</p>
  
  <pre><code>img_rgb[mask == 255] = [0, 0, 255]
  </code></pre>
  
  <p>or something else to make it change a range of colors?
  for example: </p>
  
  <pre><code>([255, 255, 0], [255, 55, 10])
  </code></pre>