Zhu-FaceOnLive commited on
Commit
148ad99
1 Parent(s): 1a69f6c

Update idlivesdk.py

Browse files
Files changed (1) hide show
  1. idlivesdk.py +24 -24
idlivesdk.py CHANGED
@@ -1,24 +1,24 @@
1
- import os
2
-
3
- from ctypes import *
4
- from numpy.ctypeslib import ndpointer
5
-
6
- libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/idlivesdk.so'
7
- libidlivesdk = cdll.LoadLibrary(libPath)
8
-
9
- getHWID = libidlivesdk.getHWID
10
- getHWID.argtypes = []
11
- getHWID.restype = c_char_p
12
-
13
- setLicenseKey = libidlivesdk.setLicenseKey
14
- setLicenseKey.argtypes = [c_char_p]
15
- setLicenseKey.restype = c_int32
16
-
17
- initSDK = libidlivesdk.initSDK
18
- initSDK.argtypes = [c_char_p]
19
- initSDK.restype = c_int32
20
-
21
- processImage = libidlivesdk.processImage
22
- processImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]
23
- processImage.restype = c_char_p
24
-
 
1
+ import os
2
+
3
+ from ctypes import *
4
+ from numpy.ctypeslib import ndpointer
5
+
6
+ libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libidlivesdk.so'
7
+ libidlivesdk = cdll.LoadLibrary(libPath)
8
+
9
+ getHWID = libidlivesdk.getHWID
10
+ getHWID.argtypes = []
11
+ getHWID.restype = c_char_p
12
+
13
+ setLicenseKey = libidlivesdk.setLicenseKey
14
+ setLicenseKey.argtypes = [c_char_p]
15
+ setLicenseKey.restype = c_int32
16
+
17
+ initSDK = libidlivesdk.initSDK
18
+ initSDK.argtypes = [c_char_p]
19
+ initSDK.restype = c_int32
20
+
21
+ processImage = libidlivesdk.processImage
22
+ processImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]
23
+ processImage.restype = c_char_p
24
+