justin2341 commited on
Commit
14df793
·
verified ·
1 Parent(s): 6f1a13f

Update alprsdk.py

Browse files
Files changed (1) hide show
  1. alprsdk.py +25 -25
alprsdk.py CHANGED
@@ -1,26 +1,26 @@
1
- import os
2
-
3
- from ctypes import *
4
-
5
- libPath = os.path.abspath(os.path.dirname(__file__)) + '/libalpr.so'
6
- alprsdk = cdll.LoadLibrary(libPath)
7
-
8
- getMachineCode = alprsdk.getMachineCode
9
- getMachineCode.argtypes = []
10
- getMachineCode.restype = c_char_p
11
-
12
- setActivation = alprsdk.setActivation
13
- setActivation.argtypes = [c_char_p]
14
- setActivation.restype = c_int32
15
-
16
- initSDK = alprsdk.initSDK
17
- initSDK.argtypes = []
18
- initSDK.restype = c_int32
19
-
20
- getLicensePlate = alprsdk.get_license_using_bytes
21
- getLicensePlate.argtypes = [c_char_p, c_ulong, POINTER(POINTER(c_char_p)), POINTER(c_int)]
22
- getLicensePlate.restype = c_int32
23
-
24
- freeLicenseResults = alprsdk.free_license_results
25
- freeLicenseResults.argtypes = [POINTER(c_char_p), c_int]
26
  freeLicenseResults.restype = None
 
1
+ import os
2
+
3
+ from ctypes import *
4
+
5
+ libPath = os.path.abspath(os.path.dirname(__file__)) + '/libalpr.so'
6
+ alprsdk = cdll.LoadLibrary(libPath)
7
+
8
+ getMachineCode = alprsdk.getMachineCode
9
+ getMachineCode.argtypes = []
10
+ getMachineCode.restype = c_char_p
11
+
12
+ setActivation = alprsdk.setActivation
13
+ setActivation.argtypes = [c_char_p]
14
+ setActivation.restype = c_int32
15
+
16
+ initSDK = alprsdk.initSDK
17
+ initSDK.argtypes = []
18
+ initSDK.restype = c_int32
19
+
20
+ getLicensePlate = alprsdk.get_license_using_bytes
21
+ getLicensePlate.argtypes = [c_char_p, c_ulong, POINTER(POINTER(c_char_p)), POINTER(c_int), POINTER(c_float)]
22
+ getLicensePlate.restype = c_int32
23
+
24
+ freeLicenseResults = alprsdk.free_license_results
25
+ freeLicenseResults.argtypes = [POINTER(c_char_p), c_int]
26
  freeLicenseResults.restype = None