Download idsdk.py from Alan311/Test1: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/Alan311/Test1/resolve/main/idsdk.py
- Command line
-
hf download hf://spaces/Alan311/Test1/idsdk.py
-
curl -L -o idsdk.py https://huggingface.co/spaces/Alan311/Test1/resolve/main/idsdk.py
588 Bytes
| import os | |
| from ctypes import * | |
| libPath = os.path.abspath(os.path.dirname(__file__)) + '/libidsdk.so' | |
| #libPath = '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 | |
| print("All go through") |