JaredBailey commited on
Commit
f00dee0
·
verified ·
1 Parent(s): 24c2710

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -200,12 +200,12 @@ if st.session_state.screen == 2:
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
207
- for i in range(0, height, 600):
208
- for j in range(0, width, 600):
209
  cv2.rectangle(st.session_state.blank_img, (j, i), (j + 640, i + 640), (0, 255, 0), 5)
210
  cv2.putText(st.session_state.blank_img, str(int(i / 600) * 10 + int(j / 600)), (j + 200, i + 320), cv2.FONT_HERSHEY_SIMPLEX, 10, (0, 255, 0), 10)
211
  st.image(st.session_state.blank_img, use_column_width=True)
 
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
207
+ for i in range(0, width, 600):
208
+ for j in range(0, height, 600):
209
  cv2.rectangle(st.session_state.blank_img, (j, i), (j + 640, i + 640), (0, 255, 0), 5)
210
  cv2.putText(st.session_state.blank_img, str(int(i / 600) * 10 + int(j / 600)), (j + 200, i + 320), cv2.FONT_HERSHEY_SIMPLEX, 10, (0, 255, 0), 10)
211
  st.image(st.session_state.blank_img, use_column_width=True)