How to fast change image brightness with python + OpenCV?

前端 未结 12 855
感动是毒
感动是毒 2020-12-05 10:42

I have a sequence of images. I need to average brightness of these images.

First example (very slow):

img = cv2.imread(\'test.jpg\')         


        
12条回答
  •  遥遥无期
    2020-12-05 11:21

    Slice to select just the third channel and then modify those elements -

    hsv[:,:,2] += value
    

提交回复
热议问题