首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ONVIF Python工具用法

ONVIF Python工具用法
EN

Stack Overflow用户
提问于 2018-11-26 16:11:14
回答 1查看 7.5K关注 0票数 0

ONVIF工具:

https://github.com/quatanium/python-onvif

我已经正确安装(在下面的安装诊断),但我不知道如何从“入门”一步开始。"from onvif import ONVIFCamera“指的是什么?

我希望能得到一个提示!

非常感谢并致以最良好的问候,塞尔吉奥

代码语言:javascript
运行
复制
sudo python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to onvif.egg-info/requires.txt
writing onvif.egg-info/PKG-INFO
writing top-level names to onvif.egg-info/top_level.txt
writing dependency_links to onvif.egg-info/dependency_links.txt
writing entry points to onvif.egg-info/entry_points.txt
reading manifest file 'onvif.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.'
writing manifest file 'onvif.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/cli.py -> build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/client.py -> build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/exceptions.py -> build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/definition.py -> build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/version.txt -> build/bdist.linux-armv6l/egg/onvif
copying build/lib.linux-armv6l-2.7/onvif/__init__.py -> build/bdist.linux-armv6l/egg/onvif
byte-compiling build/bdist.linux-armv6l/egg/onvif/cli.py to cli.pyc
byte-compiling build/bdist.linux-armv6l/egg/onvif/client.py to client.pyc
byte-compiling build/bdist.linux-armv6l/egg/onvif/exceptions.py to exceptions.pyc
byte-compiling build/bdist.linux-armv6l/egg/onvif/definition.py to definition.pyc
byte-compiling build/bdist.linux-armv6l/egg/onvif/__init__.py to __init__.pyc
installing package data to build/bdist.linux-armv6l/egg
running install_data
creating build/bdist.linux-armv6l/egg/wsdl
copying wsdl/remotediscovery.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/rw-2.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/accesscontrol.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/addressing -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/doorcontrol.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/bf-2.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/receiver.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/t-1.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/recording.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/bw-2.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/ws-discovery.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/xmlmime -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/b-2.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/devicemgmt.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/analyticsdevice.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/ptz.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/actionengine.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/xml.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/r-2.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/ws-addr.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/advancedsecurity.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/replay.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/onvif.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/include -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/search.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/media.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/imaging.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/envelope -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/events.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/deviceio.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/analytics.wsdl -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/types.xsd -> build/bdist.linux-armv6l/egg/wsdl
copying wsdl/display.wsdl -> build/bdist.linux-armv6l/egg/wsdl
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/entry_points.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/not-zip-safe -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/requires.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying onvif.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
creating 'dist/onvif-0.2.0-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing onvif-0.2.0-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/onvif-0.2.0-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/onvif-0.2.0-py2.7.egg
Extracting onvif-0.2.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
onvif 0.2.0 is already the active version in easy-install.pth
Installing onvif-cli script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/onvif-0.2.0-py2.7.egg
Processing dependencies for onvif==0.2.0
Searching for suds-passworddigest==0.1.2
Best match: suds-passworddigest 0.1.2
Processing suds_passworddigest-0.1.2-py2.7.egg
suds-passworddigest 0.1.2 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/suds_passworddigest-0.1.2-py2.7.egg
Searching for suds==0.4
Best match: suds 0.4
Processing suds-0.4-py2.7.egg
suds 0.4 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg
Finished processing dependencies for onvif==0.2.0
EN

回答 1

Stack Overflow用户

发布于 2018-11-26 16:17:31

from onvif import ONVIFCamera意味着它将从onvif模块(您在上一步中安装的模块)中导入ONVIFCamera类定义。您可以在这个file中找到ONVIFCamera类的定义

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53476952

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档