saritha5 commited on
Commit
f2497a4
·
1 Parent(s): 11eacd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- st.write(type(image))
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')