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

from ctypes import *

libPath = os.path.abspath(os.path.dirname(__file__)) + '/libvein.so'
veinsdk = cdll.LoadLibrary(libPath)

getMachineCode = veinsdk.getMachineCode
getMachineCode.argtypes = []
getMachineCode.restype = c_char_p

setActivation = veinsdk.setActivation
setActivation.argtypes = [c_char_p]
setActivation.restype = c_int32

initSDK = veinsdk.initSDK
initSDK.argtypes = []
initSDK.restype = c_int32

getFeature = veinsdk.get_feature
getFeature.argtypes = [c_char_p, c_ulong, POINTER(c_float)]
getFeature.restype = c_int32

getScore = veinsdk.get_score
getScore.argtypes = [POINTER(c_float), c_ulong, POINTER(c_float), c_ulong]
getScore.restype = c_float