Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ else:
|
|
| 94 |
def occ_predict(img_content):
|
| 95 |
im = []
|
| 96 |
st.write(img_content)
|
| 97 |
-
image=cv2.imread(img_content)
|
| 98 |
#imgplot = plt.imshow(image)
|
| 99 |
#plt.show()
|
| 100 |
img = Image.fromarray(image, 'RGB')
|
|
|
|
| 94 |
def occ_predict(img_content):
|
| 95 |
im = []
|
| 96 |
st.write(img_content)
|
| 97 |
+
image=cv2.imread(img_content,cv2.COLOR_RGB2YCrCb)
|
| 98 |
#imgplot = plt.imshow(image)
|
| 99 |
#plt.show()
|
| 100 |
img = Image.fromarray(image, 'RGB')
|