我正在用python设置一个识别车牌,但我不能使用库'OpenALPR‘,因为给我发了一个错误
OpenalPR加载错误
尝试:
if platform.system().lower().find("windows") != -1:
self._openalprpy_lib = ctypes.cdll.LoadLibrary("libopenalprpy.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")
except OSError as e:
nex = OSError("Unable to locate the OpenALPR library. Please make sure that OpenALPR is properly "
"installed on your system and that the libraries are in the appropriate paths.")
if _PYTHON_3:
nex.__cause__ = e;
raise nex
finally:
mutex.release()发布于 2019-04-26 03:08:34
尝试提供libopenalprpy.so库文件的完整路径。这个问题似乎没有为python3编译和安装python包装器。
安装python3-dev包,然后编译并安装openalpr。
要卸载本地编译的版本,可以使用以下命令
cd build
sudo make uninstallhttps://stackoverflow.com/questions/55326888
复制相似问题