Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def process_image(img):
|
|
62 |
filepath="test_img.png"
|
63 |
img = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE)
|
64 |
img = process_image(img)
|
65 |
-
prediction =
|
66 |
decoded = K.ctc_decode(prediction,
|
67 |
input_length=np.ones(prediction.shape[0]) * prediction.shape[1],
|
68 |
greedy=True)[0][0]
|
|
|
62 |
filepath="test_img.png"
|
63 |
img = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE)
|
64 |
img = process_image(img)
|
65 |
+
prediction =model.predict(np.asarray([img]))
|
66 |
decoded = K.ctc_decode(prediction,
|
67 |
input_length=np.ones(prediction.shape[0]) * prediction.shape[1],
|
68 |
greedy=True)[0][0]
|