推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
cshlxm
V2EX  ›  Python

python3.6 在 ubuntu 1604 下调用海康 Linux sdk 动态库总是失败。。

  •  
  •   cshlxm · Jan 24, 2019 · 2695 views
    This topic created in 2702 days ago, the information mentioned may be changed or developed.
    从海康官网下载的最新版 64 位 sdk,在 py3.6 下用 ctypes 调用 libso 动态库文件,访问 nvr 下的摄像头。。。莫名总是失败,确切说登录成功,但是在 Ubuntu1604 下一调用抓图,就提示抓图失败,失败代码 107 或者 47,同样的代码在 cent6 下可以。。。不知道是系统的锅还是海康 sdk 的锅。。。有踩过坑的 v 友么,给点提示
    Supplement 1  ·  Jan 24, 2019
    找到问题了,是 vmware 的问题,一直是在虚拟机下开发,换到真实 linux 的主机上就没问题了.....这该算海康的问题还是算 vm 的问题呢...
    1 replies    2019-01-25 10:44:40 +08:00
    koebehshian
        1
    koebehshian  
       Jan 25, 2019
    以我多年的经验,基本上都是自己的问题,海康的 libso 动态库,理论上只需要操作系统和架构匹配了就能用。
    动态库有可能还依赖其他动态库,可以使用 ldd 命令查看。
    访问摄像头,本质上就是访问海康摄像头的 8000 端口,http 连接,所以应该没什么与系统相关的依赖。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
    ♥ Do have faith in what you're doing.