JaredBailey commited on
Commit
7f1d581
·
verified ·
1 Parent(s): d77ffda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -198,8 +198,9 @@ if st.session_state.screen == 2:
198
 
199
  with row5_col2:
200
  # st.image(st.session_state.image, use_column_width=True)
201
- st.session_state.boxed_image = cv2.imread(st.session_state.image)
202
- # st.session_state.boxed_image = cv2.cvtColor(st.session_state.boxed_image, cv2.COLOR_BGR2RGB)
 
203
  height, width, channels = st.session_state.boxed_image.shape
204
  st.session_state.blank_img = np.zeros((height + 640, width + 640, 3), np.uint8)
205
  st.session_state.blank_img[0:height, 0:width] = st.session_state.boxed_image
 
198
 
199
  with row5_col2:
200
  # st.image(st.session_state.image, use_column_width=True)
201
+
202
+ st.session_state.boxed_image = np.array(st.session_state.image)
203
+ st.session_state.boxed_image = cv2.cvtColor(st.session_state.boxed_image, cv2.COLOR_RGB2BGR)
204
  height, width, channels = st.session_state.boxed_image.shape
205
  st.session_state.blank_img = np.zeros((height + 640, width + 640, 3), np.uint8)
206
  st.session_state.blank_img[0:height, 0:width] = st.session_state.boxed_image