screen = np.array(ImageGrab.grab(bbox=(0,0,1920,1080)))
I was capturing my screen and
health_bar_bgr = screen[970:990, 800:900] health_bar = cv.cvtColor(health_bar_bgr, cv.COLOR_BGR2RGB)
and cropped the part I wanted and changed the bgr to rgb value. now I want to find the value of r (in rgb) of the pixels on the cropped area.
b,g,r = (health_bar) print (r)
when I tried this I got a error saying
Traceback (most recent call last): File "d:/Open_cv/.vscode/speec_recog/import cv2 as cv.py", line 37, in <module> b,g,r = (health_bar) ValueError: too many values to unpack (expected 3)
sorry if this a easy question I am new to opencv