https://github.com/grimoire/realtime-hikvision-preview-python
preview hikvision ipcamera with python.
https://github.com/grimoire/realtime-hikvision-preview-python
Last synced: 5 months ago
JSON representation
preview hikvision ipcamera with python.
- Host: GitHub
- URL: https://github.com/grimoire/realtime-hikvision-preview-python
- Owner: grimoire
- Created: 2019-07-08T08:19:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T08:48:44.000Z (almost 6 years ago)
- Last Synced: 2024-12-16T00:51:49.487Z (5 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# realtime-hikvision-preview-python
preview hikvision ipcamera with python.
Getting started
===============this module provide a interface to preview hikvision ipcamera with python, much fast than opencv+RTSP
Install
-------install pybind11
download hikvision network sdk and player sdk
http://www1.hikvision.com/cn/download_more_403.html
http://www1.hikvision.com/cn/download_more_407.htmlinstall nvidia cuda
config the CMakeLists.txt, set OpenCV_DIR, HIKVISION_INCLUDE, PYTHON35_INCLUDE
copy all necessary librarys to ./lib or add the pathes to link_directories
make the project
Usage
=====```python
import HKIPcamera
import numpy as nphkipc = HKIPcamera.HKIPCamera()
# login
login_success = hkipc.login(ip, name, password, port, channel, streamtype, linkmode=link_mode, device_id = device_id, bufferize=5)# read frame and cast to ndarray
frame = hkipc.getframe()
frame = np.array(frame)
```