Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ else:
|
|
96 |
def occ_predict(imgpath):
|
97 |
im = []
|
98 |
imgpath = str(imgpath)
|
99 |
-
image=cv2.imread(imgpath)
|
100 |
-
|
101 |
#imgplot = plt.imshow(image)
|
102 |
#plt.show()
|
103 |
img = Image.fromarray(image, 'RGB')
|
|
|
96 |
def occ_predict(imgpath):
|
97 |
im = []
|
98 |
imgpath = str(imgpath)
|
99 |
+
image=cv2.imread(imgpath,CV_LOAD_IMAGE_COLOR)
|
100 |
+
|
101 |
#imgplot = plt.imshow(image)
|
102 |
#plt.show()
|
103 |
img = Image.fromarray(image, 'RGB')
|