1 | initial version |
Drop zero:
img = cv.imread('image.jpg')
norm_img = np.zeros((800, 800))
final_img = cv.normalize(img, normalizedImg, 0, 255, cv.NORM_MINMAX)
cv.imshow('final_img', final_img)
cv.waitKey(0)
cv.destroyAllWindows()
Or to use cv2.resize()
import cv2 as cv
img = cv.imread(('image.jpg')
img = cv.resize(img, (800, 800))
cv.normalize(img, img, 0, 255, cv.NORM_MINMAX)
cv.imshow('dst_rt', img)
cv.waitKey(0)
cv.destroyAllWindows()
2 | No.2 Revision |
Drop zero:
img = cv.imread('image.jpg')
norm_img = np.zeros((800, 800))
final_img = cv.normalize(img, normalizedImg, 0, 255, cv.NORM_MINMAX)
cv.imshow('final_img', final_img)
cv.waitKey(0)
cv.destroyAllWindows()
Or to use cv2.resize()
import cv2 as cv
img = cv.imread(('image.jpg')
img = cv.resize(img, (800, 800))
cv.normalize(img, img, 0, 255, cv.NORM_MINMAX)
cv.imshow('dst_rt', img)
cv.waitKey(0)
cv.destroyAllWindows()