2

我正在使用 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()
4

1 回答 1

1

尝试给出 libopenalprpy.so 库文件的完整路径。这个问题似乎没有为 python3 编译和安装 python 包装器。

安装python3-dev包,然后编译安装openalpr。

要卸载本地编译的版本,您可以使用以下命令

cd build
sudo make uninstall
于 2019-04-25T19:08:34.220 回答