Compare commits
No commits in common. '89746c13ca9ceda6596b8338ae57126e8c580c1d' and '87722c10ab176a7862f8040613d6e308cd56e869' have entirely different histories.
89746c13ca
...
87722c10ab
@ -1,2 +0,0 @@
|
|||||||
tensort_cache
|
|
||||||
__pycache__
|
|
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Python: Current File",
|
|
||||||
"type": "python",
|
|
||||||
"request": "launch",
|
|
||||||
"program": "${file}",
|
|
||||||
"console": "integratedTerminal",
|
|
||||||
"cwd": "${fileDirname}",
|
|
||||||
"justMyCode": true,
|
|
||||||
"purpose": ["debug-in-terminal"],
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"cSpell.words": [
|
|
||||||
"fastdeploy",
|
|
||||||
"imread",
|
|
||||||
"imshow",
|
|
||||||
"rtsp",
|
|
||||||
"yolov"
|
|
||||||
],
|
|
||||||
"[python]": {
|
|
||||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
|
||||||
},
|
|
||||||
"python.formatting.provider": "none"
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
import yaml
|
import yaml
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
def get_configs(yaml_files):
|
def get_configs(ymal_files):
|
||||||
yaml_path = Path(__file__).parent.parent / yaml_files
|
yaml_path = Path(__file__).parent / ymal_files
|
||||||
with yaml_path.open("r", encoding="utf-8") as f:
|
with yaml_path.open("r", encoding="utf-8") as f:
|
||||||
return yaml.load(f, Loader=yaml.FullLoader)
|
return yaml.load(f, Loader=yaml.FullLoader)
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
def rtsp_para(scource):
|
||||||
|
|
||||||
|
if scource.split('://')[0] == 'rtsp':
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,14 +0,0 @@
|
|||||||
def is_image_file(filename):
|
|
||||||
image_extensions = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff", ".webp"]
|
|
||||||
# 获取文件扩展名并转换为小写
|
|
||||||
file_extension = filename.split(".")[-1].lower()
|
|
||||||
return file_extension in image_extensions
|
|
||||||
|
|
||||||
|
|
||||||
def is_rtsp_or_video(source):
|
|
||||||
if source.startswith("rtsp://"):
|
|
||||||
return True
|
|
||||||
|
|
||||||
video_exts = ["mp4", "avi"]
|
|
||||||
file_extension = source.split(".")[-1].lower()
|
|
||||||
return file_extension in video_exts
|
|
Loading…
Reference in New Issue