Im doing some quick exercises using CV library trying to analize some colored images. This is my code:
import cv2 as cv
img01=cv.imread('PATH')
from matplotlib import pyplot as plt
plt.imshow(cv.cvtColor(img01,cv.COLOR_BGR2RGB))
from matplotlib import pyplot as plt
plt.imshow(cv.cvtColor(img01,cv.COLOR_BGR2RGB))
Once this is set, then i go to a specific place in the image to be analized using a for loop:
h,w,_=img01.shape
for i in range(50,150):
for j in range(25,50):
img01=[i,j]=(0,100,0)
But once i ran that part i got this error:
**
ValueError: too many values to unpack (expected 2)**
I have tried changing the parameters,image or restarting the compilation but is not working
New contributor
Pablo212 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.