Spaces:
Running
Running
justin2341
commited on
Upload 6 files
Browse files- .gitattributes +1 -0
- data/templates.bin +2 -2
- facesdk.py +7 -7
- libkbyai_facesdk2.so +3 -0
.gitattributes
CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
libfacesdk2.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
libfacesdk2.so filter=lfs diff=lfs merge=lfs -text
|
37 |
+
libkbyai_facesdk2.so filter=lfs diff=lfs merge=lfs -text
|
data/templates.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d791d9e975be933db24fa029ab5d0d752b85fdbda8a540c5d1baf385acf23aa9
|
3 |
+
size 130663307
|
facesdk.py
CHANGED
@@ -4,29 +4,29 @@ from ctypes import *
|
|
4 |
from numpy.ctypeslib import ndpointer
|
5 |
from facebox import FaceBox
|
6 |
|
7 |
-
libPath = os.path.abspath(os.path.dirname(__file__)) + '/
|
8 |
facesdk = cdll.LoadLibrary(libPath)
|
9 |
|
10 |
-
getMachineCode = facesdk.
|
11 |
getMachineCode.argtypes = []
|
12 |
getMachineCode.restype = c_char_p
|
13 |
|
14 |
-
setActivation = facesdk.
|
15 |
setActivation.argtypes = [c_char_p]
|
16 |
setActivation.restype = c_int32
|
17 |
|
18 |
-
initSDK = facesdk.
|
19 |
initSDK.argtypes = [c_char_p]
|
20 |
initSDK.restype = c_int32
|
21 |
|
22 |
-
faceDetection = facesdk.
|
23 |
faceDetection.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32, POINTER(FaceBox), c_int32]
|
24 |
faceDetection.restype = c_int32
|
25 |
|
26 |
-
templateExtraction = facesdk.
|
27 |
templateExtraction.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32, POINTER(FaceBox)]
|
28 |
templateExtraction.restype = c_int32
|
29 |
|
30 |
-
similarityCalculation = facesdk.
|
31 |
similarityCalculation.argtypes = [c_ubyte * 2048, c_ubyte * 2048]
|
32 |
similarityCalculation.restype = c_float
|
|
|
4 |
from numpy.ctypeslib import ndpointer
|
5 |
from facebox import FaceBox
|
6 |
|
7 |
+
libPath = os.path.abspath(os.path.dirname(__file__)) + '/libkbyai_facesdk2.so'
|
8 |
facesdk = cdll.LoadLibrary(libPath)
|
9 |
|
10 |
+
getMachineCode = facesdk.kbyai_getMachineCode
|
11 |
getMachineCode.argtypes = []
|
12 |
getMachineCode.restype = c_char_p
|
13 |
|
14 |
+
setActivation = facesdk.kbyai_setActivation
|
15 |
setActivation.argtypes = [c_char_p]
|
16 |
setActivation.restype = c_int32
|
17 |
|
18 |
+
initSDK = facesdk.kbyai_initSDK
|
19 |
initSDK.argtypes = [c_char_p]
|
20 |
initSDK.restype = c_int32
|
21 |
|
22 |
+
faceDetection = facesdk.kbyai_faceDetection
|
23 |
faceDetection.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32, POINTER(FaceBox), c_int32]
|
24 |
faceDetection.restype = c_int32
|
25 |
|
26 |
+
templateExtraction = facesdk.kbyai_templateExtraction
|
27 |
templateExtraction.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32, POINTER(FaceBox)]
|
28 |
templateExtraction.restype = c_int32
|
29 |
|
30 |
+
similarityCalculation = facesdk.kbyai_similarityCalculation
|
31 |
similarityCalculation.argtypes = [c_ubyte * 2048, c_ubyte * 2048]
|
32 |
similarityCalculation.restype = c_float
|
libkbyai_facesdk2.so
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af19aeccdef449ca0997cb567658e99de7366ff51be0db7f04456f44e75a982d
|
3 |
+
size 4935400
|