Spaces:
Running
Running
danieaneta
commited on
Commit
·
f188ad2
1
Parent(s):
232ac43
update depth - no image saving
Browse files- depth_est.py +8 -8
depth_est.py
CHANGED
|
@@ -44,15 +44,15 @@ class DepthEstimation():
|
|
| 44 |
base64_string = base64.b64encode(image_bytes).decode()
|
| 45 |
|
| 46 |
# Decode and display for verification
|
| 47 |
-
image_data = base64.b64decode(base64_string)
|
| 48 |
-
image = Image.open(io.BytesIO(image_data))
|
| 49 |
-
image.show()
|
| 50 |
-
image.save('output_image.png')
|
| 51 |
|
| 52 |
return base64_string
|
| 53 |
|
| 54 |
|
| 55 |
-
if __name__ == "__main__":
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
| 44 |
base64_string = base64.b64encode(image_bytes).decode()
|
| 45 |
|
| 46 |
# Decode and display for verification
|
| 47 |
+
# image_data = base64.b64decode(base64_string)
|
| 48 |
+
# image = Image.open(io.BytesIO(image_data))
|
| 49 |
+
# image.show()
|
| 50 |
+
# image.save('output_image.png')
|
| 51 |
|
| 52 |
return base64_string
|
| 53 |
|
| 54 |
|
| 55 |
+
# if __name__ == "__main__":
|
| 56 |
+
# img_path = 'img3.jpg'
|
| 57 |
+
# base64_image = convert_img_base64(img_path)
|
| 58 |
+
# DepthEstimation(base64_image).run_depth()
|