I am working on the image dataset using the jupyter notebook. I have no issues loading the image. But when I try displaying the image file matrix is been displayed and it keeps on giving me the error "No type Attribute". My image is saved in the same folder where my code is saved.
The code which I am using is:
imgA = cv2.imread("C:\\Users\\Dzaky Ligarwaly-R\\Documents\\pattern recognition\\Biomedical_Image.jpg")
imgB = cv2.imread("C:\\Users\\Dzaky Ligarwaly-R\\Documents\\pattern recognition\\pano.jpg")
The code to reshape the image is:
scale_percent = 60 # percentage of original size
# imgA
width = int(imgA.shape[1] * scale_percent / 100)
height = int(imgA.shape[0] * scale_percent / 100)
dimA = (width, height)
# imgB
width = int(imgB.shape[1] * scale_percent / 100)
height = int(imgB.shape[0] * scale_percent / 100)
dimB = (width, height)