title: expected shape=(None, 784), found shape=(None, 28, 28)
body: <pre><code>model = keras.models.load_model('model.h5')
  image = cv2.imread('letter.png',0)
  img = cv2.resize(image,(28,28),3)
  img_final = np.reshape(img,(1,28,28))
  pred = word_dict[np.argmax(model.predict(img_final))]
  print(pred)
  </code></pre>
  <p>when I run the above code, I get this <a href="https://i.stack.imgur.com/OqR8T.png" rel="nofollow noreferrer">Error</a>. this model predicts characters based on their images. How shall i correct this error?</p>