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

asked 2018-04-16 07:04:34 -0600

Madhu Pasula gravatar image

updated 2018-04-16 07:05:47 -0600

import cv2 import numpy as np image = cv2.imread("TEST.jpg") (ht,wt) = image.shape[:2]

when i'm trying to find the height nd weight of the image i tried using command "image.shape[:2] " but it shows the attribute error. I'm using spyder:(python3.5)

edit retag flag offensive close merge delete


your image was not loaded at all.

(python programmers seem to have a problem understanding, that this can go wrong...)

berak gravatar imageberak ( 2018-04-16 07:06:24 -0600 )edit

yeah buddy... problem is sorted out.. Thanks for your concern. but we do find a way to resolve the issues...

Madhu Pasula gravatar imageMadhu Pasula ( 2018-04-16 08:19:30 -0600 )edit