Reputation: 187
# Importing the libraries
import numpy as np
import cv2
# Load two images
img1 = cv2.imread(r'C:\Users\user1\Pictures\messi.jpg')
img2 = cv2.imread(r'C:\Users\user1\Pictures\opencvimp.jpg')
# I want to put logo on top-left corner, So I create a ROI
rows,cols,channels = img2.shape
this above code is giveing me the following error.
rows,cols,channels = img2.shape
AttributeError: 'NoneType' object has no attribute 'shape
What am I doing wrong with img2.shape ?
Upvotes: 0
Views: 1549