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