Skip to main content

Posts

Showing posts with the label Image Addition in OpenCV Python

Image Addition in OpenCV Python Image Processing

Image Addition In OpenCV, images can be addition in two different ways. One of them is adding with the command cv2.add (). The other is additioning with numpy. additioning with numpy can simply be summed as image = img1 img2. import cv2 import numpy as np x = np.uint8([ 200 ]) y = np.uint8([ 100 ]) print (cv2.add(x , y)) print (x+y) Result: