Spaces:
Running
Running
Update opyidlive.py
Browse files- opyidlive.py +6 -9
opyidlive.py
CHANGED
|
@@ -3,25 +3,22 @@ import os
|
|
| 3 |
from ctypes import *
|
| 4 |
from numpy.ctypeslib import ndpointer
|
| 5 |
|
| 6 |
-
libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
libopymrz = cdll.LoadLibrary(libPath)
|
| 11 |
-
|
| 12 |
-
getHWID = libopymrz.getHWID
|
| 13 |
getHWID.argtypes = []
|
| 14 |
getHWID.restype = c_char_p
|
| 15 |
|
| 16 |
-
setLicenseKey =
|
| 17 |
setLicenseKey.argtypes = [c_char_p]
|
| 18 |
setLicenseKey.restype = c_int32
|
| 19 |
|
| 20 |
-
initSDK =
|
| 21 |
initSDK.argtypes = [c_char_p]
|
| 22 |
initSDK.restype = c_int32
|
| 23 |
|
| 24 |
-
processImage =
|
| 25 |
processImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]
|
| 26 |
processImage.restype = c_char_p
|
| 27 |
|
|
|
|
| 3 |
from ctypes import *
|
| 4 |
from numpy.ctypeslib import ndpointer
|
| 5 |
|
| 6 |
+
libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libopyidlive.so'
|
| 7 |
+
libopyidlive = cdll.LoadLibrary(libPath)
|
| 8 |
|
| 9 |
+
getHWID = libopyidlive.getHWID
|
|
|
|
|
|
|
|
|
|
| 10 |
getHWID.argtypes = []
|
| 11 |
getHWID.restype = c_char_p
|
| 12 |
|
| 13 |
+
setLicenseKey = libopyidlive.setLicenseKey
|
| 14 |
setLicenseKey.argtypes = [c_char_p]
|
| 15 |
setLicenseKey.restype = c_int32
|
| 16 |
|
| 17 |
+
initSDK = libopyidlive.initSDK
|
| 18 |
initSDK.argtypes = [c_char_p]
|
| 19 |
initSDK.restype = c_int32
|
| 20 |
|
| 21 |
+
processImage = libopyidlive.processImage
|
| 22 |
processImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]
|
| 23 |
processImage.restype = c_char_p
|
| 24 |
|