import cv2
import numpy as np
image =  cv2.imread("Image01.jpg")
cv2.imshow('Original Image', image)
h,w,bpp = np.shape(image)
for py in range(0,h):
    for px in range(0,w):
        if(image[py][px][0] < 250):
            if(image[py][px][1] < 150):
                if(image[py][px][2] < 250):
                    image[py][px][0]=200 # BLUE should not be more than 255
                    image[py][px][1]=250 # GREEN should not be more than 255
                    image[py][px][2]=0 # RED should not be more than 255
cv2.imshow('Modified Image', image)
cv2.waitKey(0)
33917ea2768c00b7899e88c6744fe4b8fc0deed0
<mask token>

<mask token>
cv2.imshow('Original Image', image)
<mask token>
for py in range(0, h):
    for px in range(0, w):
        if image[py][px][0] < 250:
            if image[py][px][1] < 150:
                if image[py][px][2] < 250:
                    image[py][px][0] = 200
                    image[py][px][1] = 250
                    image[py][px][2] = 0
cv2.imshow('Modified Image', image)
cv2.waitKey(0)

<mask token>
image = cv2.imread('Image01.jpg')
cv2.imshow('Original Image', image)
h, w, bpp = np.shape(image)
for py in range(0, h):
    for px in range(0, w):
        if image[py][px][0] < 250:
            if image[py][px][1] < 150:
                if image[py][px][2] < 250:
                    image[py][px][0] = 200
                    image[py][px][1] = 250
                    image[py][px][2] = 0
cv2.imshow('Modified Image', image)
cv2.waitKey(0)

import cv2
import numpy as np
image = cv2.imread('Image01.jpg')
cv2.imshow('Original Image', image)
h, w, bpp = np.shape(image)
for py in range(0, h):
    for px in range(0, w):
        if image[py][px][0] < 250:
            if image[py][px][1] < 150:
                if image[py][px][2] < 250:
                    image[py][px][0] = 200
                    image[py][px][1] = 250
                    image[py][px][2] = 0
cv2.imshow('Modified Image', image)
cv2.waitKey(0)

import cv2
import numpy as np
image =  cv2.imread("Image01.jpg")
cv2.imshow('Original Image', image)
h,w,bpp = np.shape(image)
for py in range(0,h):
    for px in range(0,w):
        if(image[py][px][0] < 250):
            if(image[py][px][1] < 150):
                if(image[py][px][2] < 250):
                    image[py][px][0]=200 # BLUE should not be more than 255
                    image[py][px][1]=250 # GREEN should not be more than 255
                    image[py][px][2]=0 # RED should not be more than 255
cv2.imshow('Modified Image', image)
cv2.waitKey(0)