Hi everyone, i read frames from webcam and print mean of 3-channels of frame.
import cv2
import numpy as np
cv2.destroyAllWindows()
capture = cv2.VideoCapture(0,cv2.CAP_DSHOW)
while (True):
ret, frame = capture.read()
cv2.imshow('video', frame)
a=np.mean(frame, axis=(0, 1))
print(a)
if cv2.waitKey(30) == 27:
break
capture.release()
cv2.destroyAllWindows()
everything is consant (lightness,camera etc.) But values are always changing. What is the reason of that?