Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 202 |
-
|
|
|
|
| 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
|