Update opyidlive.py
Browse files2 unmodified lines34567891011121314151617181920212223242526272 unmodified linesfrom ctypes import *from numpy.ctypeslib import ndpointerlibPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libopymrzenv.so'libopymrzenv = cdll.LoadLibrary(libPath)libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libopymrz.so'libopymrz = cdll.LoadLibrary(libPath)getHWID = libopymrz.getHWIDgetHWID.argtypes = []getHWID.restype = c_char_psetLicenseKey = libopymrz.setLicenseKeysetLicenseKey.argtypes = [c_char_p]setLicenseKey.restype = c_int32initSDK = libopymrz.initSDKinitSDK.argtypes = [c_char_p]initSDK.restype = c_int32processImage = libopymrz.processImageprocessImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]processImage.restype = c_char_p2 unmodified lines34567891011121314151617181920212223242 unmodified linesfrom ctypes import *from numpy.ctypeslib import ndpointerlibPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libopyidlive.so'libopyidlive = cdll.LoadLibrary(libPath)getHWID = libopyidlive.getHWIDgetHWID.argtypes = []getHWID.restype = c_char_psetLicenseKey = libopyidlive.setLicenseKeysetLicenseKey.argtypes = [c_char_p]setLicenseKey.restype = c_int32initSDK = libopyidlive.initSDKinitSDK.argtypes = [c_char_p]initSDK.restype = c_int32processImage = libopyidlive.processImageprocessImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]processImage.restype = c_char_p
opyidlive.py+6-9