justin2341 commited on
Commit
72ee63a
·
verified ·
1 Parent(s): 087a1f7

Upload 2 files

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. facesdk.py +5 -5
  3. libkbyai_facesdk1.so +3 -0
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  libfacesdk1.so filter=lfs diff=lfs merge=lfs -text
37
  live_examples/2.jpg filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  libfacesdk1.so filter=lfs diff=lfs merge=lfs -text
37
  live_examples/2.jpg filter=lfs diff=lfs merge=lfs -text
38
+ libkbyai_facesdk1.so filter=lfs diff=lfs merge=lfs -text
facesdk.py CHANGED
@@ -4,22 +4,22 @@ from ctypes import *
4
  from numpy.ctypeslib import ndpointer
5
  from facebox import FaceBox
6
 
7
- libPath = os.path.abspath(os.path.dirname(__file__)) + '/libfacesdk1.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
 
 
4
  from numpy.ctypeslib import ndpointer
5
  from facebox import FaceBox
6
 
7
+ libPath = os.path.abspath(os.path.dirname(__file__)) + '/libkbyai_facesdk1.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
 
libkbyai_facesdk1.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e38133df76ada7b52389c45377f44616cf175c380e252c8b38bea3b124ccf95e
3
+ size 5073384