mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 05:16:51 +08:00
Merge pull request #188 from jkua/master
Added check in the Python wrapper for Mac OS X/Darwin when loading the openalprpy library
This commit is contained in:
@@ -8,6 +8,8 @@ class Alpr():
|
||||
# Load the .dll for Windows and the .so for Unix-based
|
||||
if platform.system().lower().find("windows") != -1:
|
||||
self._openalprpy_lib = ctypes.cdll.LoadLibrary("openalprpy.dll")
|
||||
elif platform.system().lower().find("darwin") != -1:
|
||||
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.dylib")
|
||||
else:
|
||||
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.so")
|
||||
|
||||
|
Reference in New Issue
Block a user