siddharth060104 commited on
Commit
9ea4440
·
verified ·
1 Parent(s): 9f956c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -148,11 +148,13 @@ def main():
148
 
149
  # Convert images to RGB for display
150
  new_img = cv2.cvtColor(transformed_chessboard, cv2.COLOR_BGR2RGB)
151
- st.image(new_img, caption="Segmented Chessboard", use_column_width=True)
152
 
153
 
154
  # Resize the image to 224x224
 
155
  image = cv2.resize(new_img, (224, 224))
 
156
  height, width, _ = image.shape
157
 
158
  # Get user input for perspective
 
148
 
149
  # Convert images to RGB for display
150
  new_img = cv2.cvtColor(transformed_chessboard, cv2.COLOR_BGR2RGB)
151
+
152
 
153
 
154
  # Resize the image to 224x224
155
+
156
  image = cv2.resize(new_img, (224, 224))
157
+ st.image(image, caption="Segmented Chessboard", use_container_width=True)
158
  height, width, _ = image.shape
159
 
160
  # Get user input for perspective