|
import os |
|
|
|
from ctypes import * |
|
|
|
|
|
libPath = 'libidsdk.so' |
|
idsdk = cdll.LoadLibrary(libPath) |
|
|
|
getMachineCode = idsdk.getMachineCode |
|
getMachineCode.argtypes = [] |
|
getMachineCode.restype = c_char_p |
|
|
|
setActivation = idsdk.setActivation |
|
setActivation.argtypes = [c_char_p] |
|
setActivation.restype = c_int32 |
|
|
|
initSDK = idsdk.initSDK |
|
initSDK.argtypes = [] |
|
initSDK.restype = c_int32 |
|
|
|
idcardRecognition = idsdk.idcardRecognition |
|
idcardRecognition.argtypes = [c_char_p] |
|
idcardRecognition.restype = c_char_p |
|
|
|
print("All go through") |