Video Analytics Serving (VA Serving) 是一个Python包和微服务,用于部署硬件优化的媒体分析管道。它支持基于GStreamer或FFmpeg媒体框架定义的管道,并提供用于发现、启动、停止、自定义和监控管道执行的API。VA Serving基于https://github.com/openvinotoolkit/dlstreamer_gst%E5%92%8Chttps://github.com/VCDP/FFmpeg-patch%E6%9E%84%E5%BB%BA%E3%80%82
本容器提供基于DL Streamer的独立微服务,包含以下管道:
| 管道名称 | 描述 |
|---|---|
| https://github.com/intel/video-analytics-serving/tree/master/pipelines/gstreamer/object_detection | 检测并标记对象 |
| https://github.com/intel/video-analytics-serving/tree/master/pipelines/gstreamer/object_classification | 在object_detection基础上添加对象子类型和颜色等元数据 |
| https://github.com/intel/video-analytics-serving/tree/master/pipelines/gstreamer/object_tracking | 在object_classification基础上添加跟踪标识符到元数据 |
| https://github.com/intel/video-analytics-serving/tree/master/pipelines/gstreamer/audio_detection | 分析音频流以检测事件,如玻璃破碎或狗吠 |
| https://github.com/intel/video-analytics-serving/tree/master/pipelines/gstreamer/action_recognition/general/README.md | 对输入视频中的通用动作进行分类,如打领结或握手 |
重要提示: Video Analytics Serving 作为预生产预览版提供。部署基于VA Serving的微服务的开发人员应根据其生产需求进行评估。
重要提示: DL Streamer Edge AI Extension镜像现在可在https://hub.docker.com/r/intel/dlstreamer-edge-ai-extension%E8%8E%B7%E5%8F%96%E3%80%82
Docker需要访问HTTP端口(默认8080)。以下示例同时提供对/tmp文件夹的访问权限,用于写入元数据结果:
bashdocker run -p 8080:8080 -v /tmp:/tmp intel/video-analytics-serving
通过授予Docker访问设备/dev/dri来启用GPU推理:
注意: Ubuntu20主机需要https://github.com/openvinotoolkit/docker_ci/blob/master/configure_gpu_ubuntu20.md%E6%89%8D%E8%83%BD%E8%AE%BF%E9%97%AEGPU
bashdocker run -p 8080:8080 -v /tmp:/tmp --device /dev/dri intel/video-analytics-serving
以下示例展示如何通过curl发送请求,实现:
bashcurl localhost:8080/pipelines/object_detection/person_vehicle_bike -X POST -H \ 'Content-Type: application/json' -d \ '{ "source": { "uri": "https://github.com/intel-iot-devkit/sample-videos/blob/master/person-bicycle-car-detection.mp4?raw=true", "type": "uri" }, "parameters" : { "threshold" : 0.75 }, "destination": { "metadata": { "type": "file", "path": "/tmp/detection_results.json", "format": "json-lines" } } }'
可通过以下命令查看输出:
bashtail -f /tmp/detection_results.json
示例输出:
json{"objects":[{"detection":{"bounding_box":{"x_max":0.7481285929679871,"x_min":0.6836653351783752,"y_max":0.9999656677246094,"y_min":0.7867168188095093},"confidence":0.8825281858444214,"label":"person","label_id":1},"h":92,"roi_type":"person","w":50,"x":525,"y":340}],"resolution":{"height":432,"width":768},"source":"https://github.com/intel-iot-devkit/sample-videos/blob/master/person-bicycle-car-detection.mp4?raw=true","timestamp":1833333333} {"objects":[{"detection":{"bounding_box":{"x_max":0.7502986788749695,"x_min":0.6836960911750793,"y_max":0.9965760111808777,"y_min":0.7709739804267883},"confidence":0.9252141118049622,"label":"person","label_id":1},"h":97,"roi_type":"person","w":51,"x":525,"y":333}],"resolution":{"height":432,"width":768},"source":"https://github.com/intel-iot-devkit/sample-videos/blob/master/person-bicycle-car-detection.mp4?raw=true","timestamp":1916666666}
有关自定义请求或从源代码构建的更多详细信息,请参见 https://github.com/intel/video-analytics-serving/tree/v0.7.0-beta
***声明:通过访问、下载或使用本软件及任何所需的依赖软件("软件包"),您同意软件包的软件许可协议条款和条件,其中可能还包括软件包中包含的第三方软件的通知、免责声明或许可条款。请参阅"third-party-programs.txt"或其他类似名称的文本文件以获取更多详细信息。
| 组件 | 许可证 |
|---|---|
| https://github.com/intel/video-analytics-serving/blob/v0.7.0-beta/docker/Dockerfile | https://github.com/intel/video-analytics-serving/blob/v0.7.0-beta/LICENSE 标签为0.7.0的Docker镜像使用https://hub.docker.com/r/openvino/ubuntu20_data-runtime%E4%BD%9C%E4%B8%BA%E5%9F%BA%E7%A1%80%EF%BC%8C%E4%BB%A5%E5%8F%8A%E5%A4%9A%E4%B8%AA%E7%A4%BE%E5%8C%BA%E6%A8%A1%E5%9D%97%E5%92%8C%E8%84%9A%E6%9C%AC%E3%80%82 Copyright (c) 2019-2021 Intel Corporation All rights reserved. |
| https://hub.docker.com/r/openvino/ubuntu20_data_runtime | Dockerfile: https://github.com/openvinotoolkit/docker_ci/blob/master/LICENSE, 镜像: 2021.4.2 (https://hub.docker.com/r/openvino/ubuntu18_runtime) |
| python-dateutil | https://github.com/dateutil/dateutil/blob/master/LICENSECopyright (c) 2018-2021 Intel Corporation All rights reserved. |
| numpy | https://github.com/numpy/numpy/blob/master/LICENSE.txtCopyright (c) 2005-2021, NumPy Developers. All rights reserved. |
| Python3 | PSF许可证Copyright © 2001-2021 Python Software Foundation; All Rights Reserved |
| Python-Pip | https://github.com/pypa/pip/blob/master/LICENSE.txtCopyright (c) 2008-2021 The pip developers (see AUTHORS.txt file) |
| setuptools | https://github.com/pypa/setuptools/blob/master/LICENSECopyright (C) 2016 Jason R Coombs [object Object] |
| https://github.com/Julian/jsonschema/ | https://github.com/Julian/jsonschema/blob/main/COPYINGCopyright (c) 2013 Julian Berman |
| pyyaml | https://github.com/yaml/pyyaml/blob/master/LICENSECopyright (c) 2017-2021 Ingy döt Net[object Object]Copyright (c) 2006-2016 Kirill Simonov |
| swagger-ui-bundle | https://github.com/swagger-api/swagger-ui/blob/master/LICENSECopyright 2020-2021 SmartBear Software Inc. |
| Tornado Web Server | https://github.com/tornadoweb/tornado/blob/master/LICENSECopyright: 2009-2011 Facebook |
| Requests | https://github.com/kennethreitz/requests/blob/master/LICENSECopyright 2019 Kenneth Reitz |
| Zalando Connexion | https://github.com/zalando/connexion/blob/master/LICENSE.txtCopyright 2015 Zalando SE |
| Intel® Distribution of OpenVINO™ Toolkit - OpenModelZoo | https://github.com/opencv/open_model_zoo/blob/master/LICENSECopyright (c) 2020-2021 Intel Corporation |
| https://github.com/openvinotoolkit/openvino | https://github.com/openvinotoolkit/openvino/blob/2020/LICENSECopyright (c) 2020-2021 Intel Corporation |
与任何预构建镜像的使用一样,镜像用户有责任确保对本镜像的任何使用符合其中包含的所有软件的相关许可证和潜在费用。供应商不提供任何赔偿或保修。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务