JaredBailey commited on
Commit
a3b03e3
·
verified ·
1 Parent(s): 86fcce7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -28,7 +28,8 @@ if 'image_counter' not in st.session_state:
28
  # Upload
29
  ###
30
  #####
31
- st.markdown("<h1 style='text-align: center; color: black;'>Find Waldo and His Friends Using Computer Vision</h1>", unsafe_allow_html=True)
 
32
  st.markdown("<p style='text-align: center; color: black;'>Upload an image using your cell phone (single book page), or select an imagefrom the below list</p>", unsafe_allow_html=True)
33
 
34
  _, row1_col2, _ = st.columns([2,3,2])
@@ -159,7 +160,7 @@ if st.session_state.image is not None:
159
  st.session_state.image_counter += 1
160
 
161
  # Plot predicted image
162
- im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
163
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
164
  st.image(im_rgb)
165
 
 
28
  # Upload
29
  ###
30
  #####
31
+ st.markdown("<h1 style='text-align: center; color: black;'>Find Waldo and His Friends</h1>", unsafe_allow_html=True)
32
+ st.markdown("<h2 style='text-align: center; color: black;'>Using Computer Vision</h2>", unsafe_allow_html=True)
33
  st.markdown("<p style='text-align: center; color: black;'>Upload an image using your cell phone (single book page), or select an imagefrom the below list</p>", unsafe_allow_html=True)
34
 
35
  _, row1_col2, _ = st.columns([2,3,2])
 
160
  st.session_state.image_counter += 1
161
 
162
  # Plot predicted image
163
+ im_bgr = st.session_state.results[st.session_state.image_counter].plot(line_width=20, font_size=20) # BGR-order numpy array
164
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
165
  st.image(im_rgb)
166