File size: 540 Bytes
2cbace0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os

from ctypes import *

libPath = os.path.abspath(os.path.dirname(__file__)) + '/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