PalmVeinRecognition / veinsdk.py
justin2341's picture
Upload 11 files
497f61b verified
raw
history blame contribute delete
678 Bytes
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