justin2341 commited on
Commit
7faf15f
·
verified ·
1 Parent(s): 4b32201

Upload 6 files

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. data/templates.bin +2 -2
  3. facesdk.py +7 -7
  4. 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:d953ac95ac9dcccc794104d32f0d54ba067c55a10a9546d308d67096d6ee2ca0
3
- size 324888336
 
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__)) + '/libfacesdk2.so'
8
  facesdk = cdll.LoadLibrary(libPath)
9
 
10
- getMachineCode = facesdk.getMachineCode
11
  getMachineCode.argtypes = []
12
  getMachineCode.restype = c_char_p
13
 
14
- setActivation = facesdk.setActivation
15
  setActivation.argtypes = [c_char_p]
16
  setActivation.restype = c_int32
17
 
18
- initSDK = facesdk.initSDK
19
  initSDK.argtypes = [c_char_p]
20
  initSDK.restype = c_int32
21
 
22
- faceDetection = facesdk.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.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.similarityCalculation
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