Git Product home page Git Product logo

hcnetsdk-python's Introduction

HCNetSDK-python

海康威视网络SDK的Python封装,支持Windows和Linux。

欢迎使用,欢迎提出建议。

安装

你可以通过 pip 来安装 HCNetSDK-python:

pip install HCNetSDK-python

也可以自己构建安装包:

python setup.py bdist_wheel --library-dirs your_CH-HCNetSDKV/Libs your_MediaPlayControl/Libs --platform {win64, linux64, win32, linux32}

pip install dist/HCNetSDK_python-{version}-py3-none-{platform}.whl

使用

具体使用方法请参考 examples

from HCNetSDK import *

# 获取NetSDK对象并初始化
sdk = NetClient()
sdk.Init()
sdk.SetConnectTime(2000, 3)
sdk.SetReconnect(10000, True)
sdk.SetLogToFile(3)

# 登录设备
lUserId, device_info = sdk.Login_V40(ip, port, username, password)

# 登出设备
sdk.Logout(lUserId)

hcnetsdk-python's People

Contributors

laugh12321 avatar m8u avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.