laszlojakab / hikvision-intercom-python-demo Goto Github PK
View Code? Open in Web Editor NEWHikvsion intercom Python demo
License: MIT License
Hikvsion intercom Python demo
License: MIT License
Is any chance to you can write integration for Hikvision first generation Video Intercom ? I can be a tester...
Can we enable and live stream Two-Way audio using Hik Vision SDK. I am using FRPS to stream the live video
Hello,
I am getting the error NET_DVR_Login_V30 failed, error code = 10 when runnig this line :
user_id = HCNetSDK.NET_DVR_Login_V30("192.168.100.102".encode('utf-8'), 80, "admin".encode('utf-8'), "***".encode('utf-8'), device_info)
Could you help me please to resolve this error.
Thank you so much for such an excellent sample.
Any chance you have a Linux version?
I see the Linux LoadLibrary
version but after making HCNetSDK.NET_DVR_Login_V30
call it crashes in case of the successful login with the error:
Bus error (core dumped)
Any hint or suggestion?
error code - NET_DVR_Login_V30 failed, error code = 29
login - device_info = NET_DVR_DEVICEINFO_V30()
user_id = HCNetSDK.NET_DVR_Login_V30( "192.168.2.3".encode('utf-8'), 8000, "admin".encode('utf-8'), "Futurehook7".encode('utf-8'), device_info)
if (user_id < 0):
print(
f"NET_DVR_Login_V30 failed, error code = {HCNetSDK.NET_DVR_GetLastError()}")
HCNetSDK.NET_DVR_Cleanup()
exit(1)
import - from base64 import b64encode
from hcnetsdk import HCNetSDK, NET_DVR_DEVICEINFO_V30, NET_DVR_DEVICEINFO_V30, NET_DVR_SETUPALARM_PARAM, fMessageCallBack, COMM_ALARM_V30, COMM_ALARM_VIDEO_INTERCOM, NET_DVR_VIDEO_INTERCOM_ALARM, NET_DVR_ALARMINFO_V30, ALARMINFO_V30_ALARMTYPE_MOTION_DETECTION, VIDEO_INTERCOM_ALARM_ALARMTYPE_DOORBELL_RINGING, VIDEO_INTERCOM_ALARM_ALARMTYPE_DISMISS_INCOMING_CALL, VIDEO_INTERCOM_ALARM_ALARMTYPE_TAMPERING_ALARM, VIDEO_INTERCOM_ALARM_ALARMTYPE_DOOR_NOT_CLOSED, COMM_UPLOAD_VIDEO_INTERCOM_EVENT, NET_DVR_VIDEO_INTERCOM_EVENT, VIDEO_INTERCOM_EVENT_EVENTTYPE_UNLOCK_LOG, VIDEO_INTERCOM_EVENT_EVENTTYPE_ILLEGAL_CARD_SWIPING_EVENT, NET_DVR_UNLOCK_RECORD_INFO
from ctypes import POINTER, cast, c_char_p, c_byte
import requests as req
Hey @laszlojakab , long time ago? :-)
Still working on this script? Did you find a way to start two way audio with SDK? would be nice to make calls from HA app
thnx for feedback
Hey @laszlojakab
I'm creating an addon for HA with your script, but when i try to run your script using python 3.9 , when i fire it, i get immediately the error : segmentation fault - core dumped
why is that? if i run it with python 3.8 , then it works?
any idea?
thnx in advance
"cannot open shared object file: No such file or directory" error is coming while cdll.LoadLibrary()
File "/home/cf/hikvision-intercom-python-demo/hcnetsdk.py", line 162, in
HCNetSDK = cdll.LoadLibrary(hcnetsdk_path)
File "/usr/lib/python3.9/ctypes/init.py", line 452, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.9/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/cf/hikvision-intercom-python-demo/EN-HCNetSDKV6.1.9.4_build20220412_linux64/lib/libhcnetsdk.so: cannot open shared object file: No such file or directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.