
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Video Analytics Serving (VA Serving) 是一个Python包和微服务,用于部署硬件优化的媒体分析管道。它支持基于https://gstreamer.freedesktop.org/documentation/?gi-language=c%E6%88%96https://ffmpeg.org/%E5%AA%92%E4%BD%93%E6%A1%86%E6%9E%B6%E5%AE%9A%E4%B9%89%E7%9A%84%E7%AE%A1%E9%81%93%EF%BC%8C%E5%B9%B6%E6%8F%90%E4%BE%9B%E7%94%A8%E4%BA%8E%E5%8F%91%E7%8E%B0%E3%80%81%E5%90%AF%E5%8A%A8%E3%80%81%E5%81%9C%E6%AD%A2%E3%80%81%E8%87%AA%E5%AE%9A%E4%B9%89%E5%92%8C%E7%9B%91%E6%8E%A7%E7%AE%A1%E9%81%93%E6%89%A7%E8%A1%8C%E7%9A%84API%E3%80%82VA 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 docker.xuanyuan.run/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 docker.xuanyuan.run/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) |
| https://pypi.org/project/python-dateutil/ | https://github.com/dateutil/dateutil/blob/master/LICENSECopyright (c) 2018-2021 Intel Corporation All rights reserved. |
| https://pypi.org/project/numpy/ | https://github.com/numpy/numpy/blob/master/LICENSE.txtCopyright (c) 2005-2021, NumPy Developers. All rights reserved. |
| https://packages.debian.org/sid/python3 | https://docs.python.org/3/license.htmlCopyright © 2001-2021 Python Software Foundation; All Rights Reserved |
| https://packages.debian.org/sid/python3-pip | https://github.com/pypa/pip/blob/master/LICENSE.txtCopyright (c) 2008-2021 The pip developers (see AUTHORS.txt file) |
| https://pypi.org/project/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 |
| https://pypi.org/project/PyYAML/ | https://github.com/yaml/pyyaml/blob/master/LICENSECopyright (c) 2017-2021 Ingy döt Net[object Object]Copyright (c) 2006-2016 Kirill Simonov |
| https://pypi.org/project/swagger-ui-bundle/ | https://github.com/swagger-api/swagger-ui/blob/master/LICENSECopyright 2020-2021 SmartBear Software Inc. |
| https://packages.debian.org/sid/python3-tornado | https://github.com/tornadoweb/tornado/blob/master/LICENSECopyright: 2009-2011 Facebook |
| https://packages.debian.org/sid/python3-requests | https://github.com/kennethreitz/requests/blob/master/LICENSECopyright 2019 Kenneth Reitz |
| https://pypi.org/project/connexion/ | https://github.com/zalando/connexion/blob/master/LICENSE.txtCopyright 2015 Zalando SE |
| https://software.intel.com/en-us/openvino-toolkit/documentation/pretrained-models | 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 |
与任何预构建镜像的使用一样,镜像用户有责任确保对本镜像的任何使用符合其中包含的所有软件的相关许可证和潜在费用。供应商不提供任何赔偿或保修。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务