KhomZ / Automatic-Number-Plate-Recognition-with-SMS-Alert

Automatic Nepali Number Plate Recognition with Sms Reporting System x Real Time Machine Learning Approach on Traffic Congestion Prediction System in Internet of Vehicles
MIT License
1 stars 0 forks source link

AttributeError: 'NoneType' object has no attribute 'shape' #8

Open KhomZ opened 2 years ago

KhomZ commented 2 years ago

https://www.google.com/search?q=AttributeError%3A%20%27NoneType%27%20object%20has%20no%20attribute%20%27shape%27+site:stackoverflow.com

LICENSE PLATE LOCAIZATION STARTED...


AttributeError Traceback (most recent call last) in () 10 inputImage = cv2.imread("test2.jpg") 11 ---> 12 inputImage = imutils.resize(inputImage,500,500,cv2.INTER_AREA) 13 cv2.imshow("Original Image", inputImage) 14 finalImage = imutils.resize(inputImage,500,500,cv2.INTER_AREA)

/usr/local/lib/python3.7/dist-packages/imutils/convenience.py in resize(image, width, height, inter) 67 # grab the image size 68 dim = None ---> 69 (h, w) = image.shape[:2] 70 71 # if both the width and height are None, then return the

AttributeError: 'NoneType' object has no attribute 'shape'