Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Python calls Shi Yu SDK to log in and reports an error.
Python calls Shi Yu SDK to log in and reports an error.
Network Development _ Initialization

NETDEV_Login_V30 ipc device login

NETDEV_QueryVideoChlDetailList queries the video channel information list.

NETDEV_CaptureNoPreview device screenshot

Use restype to set the type of the received parameter.

HIKSDK。 NETDEV _ log in _ v 30 . restype = ctypes . c _ void _ p

If the type of the received parameter is not set, an exception will be thrown: the memory address is inconsistent.

When the pointer type is passed to python as a return value, default truncation occurs without setting the type.

Sdk log:

Python log: 10 1200 (user is not online)

Https://docs.python.org/3.6/library/ctypes.html # basic data type

http://icejoywoo . github . io/20 18/ 12/ 10/intro-python-ctyps . html