Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,6 +25,7 @@ if file_name is not None:
|
|
| 25 |
|
| 26 |
image = Image.open(file_name)
|
| 27 |
input_image, copy_img= process_img(image)
|
|
|
|
| 28 |
col1.image(input_image, use_column_width=True)
|
| 29 |
|
| 30 |
bbox,confidance,classes,nc = model(input_image)
|
|
@@ -45,7 +46,7 @@ if file_name is not None:
|
|
| 45 |
if class_name =="Table":
|
| 46 |
color = (255,0,0) #Red color
|
| 47 |
cv2.rectangle(copy_img, (int(x1), int(y1)), (int(x2), int(y2)),color, 2)
|
| 48 |
-
|
| 49 |
col2.image(copy_img, use_column_width=True)
|
| 50 |
|
| 51 |
|
|
|
|
| 25 |
|
| 26 |
image = Image.open(file_name)
|
| 27 |
input_image, copy_img= process_img(image)
|
| 28 |
+
col1.header("Input Image")
|
| 29 |
col1.image(input_image, use_column_width=True)
|
| 30 |
|
| 31 |
bbox,confidance,classes,nc = model(input_image)
|
|
|
|
| 46 |
if class_name =="Table":
|
| 47 |
color = (255,0,0) #Red color
|
| 48 |
cv2.rectangle(copy_img, (int(x1), int(y1)), (int(x2), int(y2)),color, 2)
|
| 49 |
+
col2.header("output Result")
|
| 50 |
col2.image(copy_img, use_column_width=True)
|
| 51 |
|
| 52 |
|