I am new to OpenCV. I want to do some preprocessing related to normalization. I want to normalize the image to a certain size. The result of the following code gives me a black image. Can someone tell me what exactly am I doing wrong? The image I entered is a black and white image
import cv2 as cv import numpy as np img = cv.imread(path) normalizedImg = np.zeros((800, 800)) cv.normalize(img, normalizedImg, 0, 255, cv.NORM_MINMAX) cv.imshow('dst_rt', self.normalizedImg) cv.waitKey(0) cv.destroyAllWindows()
source share