import os from ctypes import * from numpy.ctypeslib import ndpointer libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libopyidrecog.so' libopyidrecog = cdll.LoadLibrary(libPath) getHWID = libopyidrecog.getHWID getHWID.argtypes = [] getHWID.restype = c_char_p setLicenseKey = libopyidrecog.setLicenseKey setLicenseKey.argtypes = [c_char_p] setLicenseKey.restype = c_int32 initSDK = libopyidrecog.initSDK initSDK.argtypes = [c_char_p] initSDK.restype = c_int32 processImage = libopyidrecog.processImage processImage.argtypes = [c_char_p, c_char_p] processImage.restype = c_char_p