Sudipta Nayak
commited on
Commit
·
e0c2ed1
1
Parent(s):
a81cbb2
Changes done - Working in Safari Browser (video file)
Browse files- app/main.py +4 -1
app/main.py
CHANGED
@@ -59,6 +59,10 @@ async def detect_objects(request: Request, file: UploadFile):
|
|
59 |
print('output_image_path :', str(output_image_path))
|
60 |
print('is_video :', str(is_video))
|
61 |
|
|
|
|
|
|
|
|
|
62 |
# if(str(is_video).lower() == "true"):
|
63 |
# time.sleep(15)
|
64 |
|
@@ -68,7 +72,6 @@ async def detect_objects(request: Request, file: UploadFile):
|
|
68 |
{"request": request, "output_image": str(output_image_path), "is_video": str(is_video).lower()}
|
69 |
)
|
70 |
|
71 |
-
|
72 |
|
73 |
except subprocess.CalledProcessError as e:
|
74 |
# Handle subprocess error (e.g., log the error, return an error response)
|
|
|
59 |
print('output_image_path :', str(output_image_path))
|
60 |
print('is_video :', str(is_video))
|
61 |
|
62 |
+
# NOTE: Open the app in Safari browser as mov file play is not supported by chrome
|
63 |
+
# Video file - 8a3c3d7c-fd4fb0c8.mov (kb) , 0d4498d3-d983805d.mov (3mb)- good data
|
64 |
+
# image file - ceaa4904-2fec7d06.jpg,
|
65 |
+
|
66 |
# if(str(is_video).lower() == "true"):
|
67 |
# time.sleep(15)
|
68 |
|
|
|
72 |
{"request": request, "output_image": str(output_image_path), "is_video": str(is_video).lower()}
|
73 |
)
|
74 |
|
|
|
75 |
|
76 |
except subprocess.CalledProcessError as e:
|
77 |
# Handle subprocess error (e.g., log the error, return an error response)
|