Guest User

Untitled

a guest
Feb 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. test_image = Xtest[4]
  2. test_image = cv2.resize(test_image, (64,64))
  3. test_image = test_image[:,:,np.newaxis]
  4. test_image = np.expand_dims(test_image, axis = 0)
  5. result = model.predict(test_image)
  6.  
  7. [[1.1471398e-02 1.7711835e-05 6.1694984e-05 2.8054390e-07 1.6065275e-04
  8. 9.8699224e-01 1.9591409e-04 3.8560024e-06 4.1441439e-08 1.0961749e-03]]
  9.  
  10. test_image = cv2.imread('imageedit_3_8900841608.jpg', cv2.IMREAD_GRAYSCALE)
  11. test_image = cv2.resize(test_image, (64,64))
  12. test_image = test_image[:,:,np.newaxis]
  13. test_image = np.expand_dims(test_image, axis = 0)
  14. result = model.predict(test_image)
Add Comment
Please, Sign In to add comment