Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion udf/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flask>=3.0.2
inotify
numpy>=1.23.5
opencv-python-headless==4.10.0.82
opencv-python-headless>=4.10.0.90
vdms
wheel
10 changes: 7 additions & 3 deletions video/info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python3

import os
from concurrent.futures import ThreadPoolExecutor
from subprocess import PIPE, STDOUT, Popen
from urllib.parse import unquote
Expand Down Expand Up @@ -70,6 +71,9 @@ def _get_info(self, video):
@gen.coroutine
def get(self):
video = unquote(str(self.get_argument("video")))
info = yield self._get_info(video)
self.write(info)
self.set_status(200, "OK")
if os.path.exists(safely_join_path(self._mp4path, video)):
info = yield self._get_info(video)
self.write(info)
self.set_status(200, "OK")
else:
self.send_error(404, reason="Resource not found")
4 changes: 2 additions & 2 deletions video/requirements.GPU.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
onnx>=1.12.0,<1.18.0
onnx>=1.12.0 #,<1.18.0
onnxruntime-gpu
onnxslim
tensorrt==10.12.0.36
tensorrt>=10.14.1.48.post1
2 changes: 1 addition & 1 deletion video/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
inotify
opencv-python-headless==4.10.0.82
opencv-python-headless>=4.10.0.90
openvino-dev>=2024.6.0
ultralytics>=8.3.83
vdms
Expand Down