- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我需要将 OpenALPR 库集成到我的 C++ 程序中。不幸的是,我无法进行链接工作。
openalpr.lib 在 C:\path\to\alpr 中,alpr.h 头文件在 C:\path\to\alpr\include all *.dll文件在 main 文件的目录中。系统Windows7,编译器Gcc 5.3。
当前构建命令:
g++ -Wall -fexceptions -g -IC:\path\to\alpr\include -c C:\path\to\project\main.cpp -o obj\main.o
g++ -LC:\path\to\alpr -o bin\test.exe obj\main.o -lopenalpr
代码:
#include <alpr.h>
int main()
{
alpr::Alpr openalpr("us", "openalpr.conf");
return 0;
}
错误:
undefined reference to `alpr::Alpr::Alpr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
等等,还有很多类似的“ undefined reference ”。
OpenALPR 库以二进制版本下载自: https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Windows)
我应该从源代码构建库吗?也许我错过了什么?提前致谢。
最佳答案
Users that depend on third-party libraries or plugin interfaces that still use the old ABI can build their code with
-D_GLIBCXX_USE_CXX11_ABI=0
and everything should work fine. In most cases, it will be obvious when this flag is needed because of errors from the linker complaining about unresolved symbols involving__cxx11
.
尝试使用 -D_GLIBCXX_USE_CXX11_ABI=0
进行编译。
关于c++ - 使用 C++ 设置 OpenALPR, undefined reference 。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46036523/
我正在尝试在 Laravel Homestead (Ubuntu 18.04) 上安装 OpenALPR。首先我尝试了 The Easiest Way .我正在尝试运行: Error opening
我正在使用 OpenALPR,我已经训练 OCR 识别强制字体。当我尝试使用经过训练的数据时,alpr 退出并出现段错误。 我使用的是 1.2.0 版和 tesseract 3.03,以及 lepto
我正在尝试使用带有 IP 摄像头的 openalpr + python 检测车牌,但出现以下错误: openalpr 版本是开源的。 我已经尝试过 recognize_file 函数,没有成功 Fat
我尝试使用 PyQt 和 openalpr 构建一个 GUI 应用程序,但我的代码存在问题。一个简单的例子: from openalpr import Alpr from PyQt4 import Q
这几天我正在尝试构建 OpenALPR example project for Android .它构建并启动,但在调用 native 方法以识别它之后会出现异常: java.lang.Runtime
在 Ubuntu 18.04 上,我成功安装了 openalpr 并对其进行了测试。现在我想用python来调用它。为此,我安装了 https://pypi.org/project/openalpr/
我想在我的 android 项目中使用开放式 alpr(自动车牌识别)库。我成功地编译了所有内容,现在是时候在应用程序中使用 open alpr 但是...... 要正确创建 Alpr 类对象,我必须
我正在使用 Windows 10,我想安装 openalpr 并将库导入 python。 但是,在下载了预编译的 Windows 二进制文件之后,我不知道如何在 python 中导入 alpr 我按照
我需要将 OpenALPR 库集成到我的 C++ 程序中。不幸的是,我无法进行链接工作。 openalpr.lib 在 C:\path\to\alpr 中,alpr.h 头文件在 C:\path\to
尝试为 OSX 编译 openalpr,出现错误: [ 62%] Building CXX object misc_utilities/CMakeFiles/openalpr-utils-classi
有没有办法使用 NDK (ndk-build) 为 Android 编译库 OpenALPR ( https://github.com/openalpr/openalpr)? 最佳答案 这是为 and
我正在与 OpenALPR 合作与Python脚本。来自 argparse 参数的输入图像,每当我从命令提示符运行时,它都会给出输出并显示带有错误的对话框 "python has stopped wo
我刚刚开始使用 Raspberry PI 3。我正在尝试在其上安装一个名为 OpenALPR 的开源库。它是一个以车辆牌照图像作为参数并返回写在上面的文本的库。我一直在关注此链接来安装该库。 http
我正在使用 https://github.com/twelve17/openalpr-ios 该库用于分析车牌图像并从中获取车牌号。 当我尝试在 mac 中运行 ruby 脚本以生成 openap
我最近使用 brew install openalpr 在我的 mac 上成功安装了 openalpr。我想将 openalpr 库与 python 2.7 一起使用,但我在绑定(bind)两者时遇到
当使用 try/catch 语句进行 var data 声明时,即使有车牌,程序也会输出“No License Plate Found”。如果删除 try/catch 语句,则当帧中没有车牌时,程序可
我是一名优秀的程序员,十分优秀!