Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. filePathIn = 'E:\test.jpg'
  2. img = cv2.imread(filePathIn, cv2.IMREAD_COLOR )
  3. if (img != None) :
  4. print (img.shape)
  5. else:
  6. print ("Can't find file: "+filePathIn)
  7.  
  8. if (img != None) :
  9. ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement