hassan526 commited on
Commit
d9dd98f
·
1 Parent(s): 6959fb6

Upload 12 files

Browse files
.gitattributes CHANGED
@@ -38,3 +38,11 @@ id_ocr/dependency/libimutils.so_for_ubuntu22 filter=lfs diff=lfs merge=lfs -text
38
  id_ocr/engine/libMetaChecker.so filter=lfs diff=lfs merge=lfs -text
39
  id_ocr/engine/libOCR.so filter=lfs diff=lfs merge=lfs -text
40
  id_ocr/engine/libttvcore.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
38
  id_ocr/engine/libMetaChecker.so filter=lfs diff=lfs merge=lfs -text
39
  id_ocr/engine/libOCR.so filter=lfs diff=lfs merge=lfs -text
40
  id_ocr/engine/libttvcore.so filter=lfs diff=lfs merge=lfs -text
41
+ id_live/dependency/libDocSdk.so filter=lfs diff=lfs merge=lfs -text
42
+ id_live/dependency/libopenvino_intel_cpu_plugin.so filter=lfs diff=lfs merge=lfs -text
43
+ id_live/dependency/libopenvino_ir_frontend.so.2330 filter=lfs diff=lfs merge=lfs -text
44
+ id_live/dependency/libopenvino_onnx_frontend.so.2300 filter=lfs diff=lfs merge=lfs -text
45
+ id_live/dependency/libopenvino.so.2300 filter=lfs diff=lfs merge=lfs -text
46
+ id_live/dependency/libopenvino.so.2330 filter=lfs diff=lfs merge=lfs -text
47
+ id_live/dependency/libtbb.so.12 filter=lfs diff=lfs merge=lfs -text
48
+ id_live/engine/lib/libidlivesdk.so filter=lfs diff=lfs merge=lfs -text
id_live/dependency/libDocSdk.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e4fb0d2e876a1ef5d30ba988ac09d295ce9a38572479ae6dce6cf0c3f2ecb01
3
+ size 22300226
id_live/dependency/libopenvino.so.2300 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d0084280661a5138d9b2cbfba28c6d0df9e85c9d371b96d471b1e3b403e9cd
3
+ size 21726552
id_live/dependency/libopenvino.so.2330 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3be612fe4606381cfddf1198b3ab1a851c0fdbd8490ddb101577f82b1678ce78
3
+ size 22302048
id_live/dependency/libopenvino_intel_cpu_plugin.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1de80e57d72249ab45de0f0ab807f729a86360248ca4f4d23c203882e7736f21
3
+ size 45820616
id_live/dependency/libopenvino_ir_frontend.so.2330 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5e75fb9aad65f5a27d4a204492f3c433e11c6f90fe52f1ded9fe1333bded206
3
+ size 593584
id_live/dependency/libopenvino_onnx_frontend.so.2300 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:924bb07b0964f3657a51772fc788c2a44d028439d6898d5d7e9ab889f34660de
3
+ size 5568776
id_live/dependency/libopyenv.so ADDED
Binary file (26.8 kB). View file
 
id_live/dependency/libopyhas.so ADDED
Binary file (17.2 kB). View file
 
id_live/dependency/libtbb.so.12 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:790f832a208fe358538d48d07c88a347cfa68d669cae757ae1122a6649f8eae1
3
+ size 366464
id_live/dependency/plugins.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <ie>
2
+ <plugins>
3
+ <plugin name="CPU" location="libopenvino_intel_cpu_plugin.so">
4
+ </plugin>
5
+ </plugins>
6
+ </ie>
id_live/engine/header.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ from ctypes import *
4
+ from numpy.ctypeslib import ndpointer
5
+
6
+ def print_log(fmt): print("[LOG] \033[98m{}\033[00m" .format(fmt))
7
+ def print_info(fmt): print("[INFO] \033[92m{}\033[00m" .format(fmt))
8
+ def print_error(fmt): print("[ERR] \033[91m{}\033[00m" .format(fmt))
9
+ def print_warning(fmt): print("[WARNING] \033[93m{}\033[00m" .format(fmt))
10
+
11
+
12
+ libPath = os.path.abspath(os.path.dirname(__file__)) + '/lib/libidlivesdk.so'
13
+ libidlivesdk = cdll.LoadLibrary(libPath)
14
+
15
+ get_deviceid = libidlivesdk.getHWID
16
+ get_deviceid.argtypes = []
17
+ get_deviceid.restype = c_char_p
18
+
19
+ set_activation = libidlivesdk.setLicenseKey
20
+ set_activation.argtypes = [c_char_p]
21
+ set_activation.restype = c_int32
22
+
23
+ init_sdk = libidlivesdk.initSDK
24
+ init_sdk.argtypes = [c_char_p]
25
+ init_sdk.restype = c_int32
26
+
27
+ processImage = libidlivesdk.processImage
28
+ processImage.argtypes = [ndpointer(c_ubyte, flags='C_CONTIGUOUS'), c_int32, c_int32]
29
+ processImage.restype = c_char_p
30
+
id_live/engine/lib/libidlivesdk.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5acf23f4525ca1b24c9ba8e59a37cf72b4a4e601c5fa0d4a0079aae86ac21ee1
3
+ size 4194187