gpt4 book ai didi

c++ - Visual Studio 2012 项目中的 tesseract Remove_Reference 模糊符号

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:04:14 29 4
gpt4 key购买 nike

我会更详细地描述我的情况。我正在构建一个车牌识别系统,使用 C++、OpenCV、Tesserect,但是当我编译代码时,它返回给我一堆错误的模糊引用,所以我检查了我的代码的所有行。我在这个小组中搜索了解决方案,并尝试了几种都没有成功。

问题:

error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1011
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1030
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1061
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1105
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1136
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1179
error C2872 : ' Remove_Reference ' : ambiguous symbol File: tesscallback.h Line : 1208

使用的软件:

MS visual studio 2012
Path to visual studio : " C : \ Program Files ( x86 ) \ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ devenv.exe "
OpenCV version: 2.4.8
OS: Windows 7 Home Premium , 64 -bit
Core i7
Tesseract version: tesseract - 2.3.02 - win32 - lib -include -dirs ( tested other versions )
Inguagem used : C + +11

感谢帮助

最佳答案

几天来我一直遇到完全相同的问题(我也在使用 tesseract 进行车牌识别项目),我刚刚解决了它。从头文件 (.h) 中删除“使用命名空间 XXX”代码行(如果在 .h 文件中导致错误,可以使用 std::vector 或 cv::Mat 等容忍它们)并使用“使用命名空间 XXX”代码行您的源代码(.cpp 文件)。

我引用了这个链接:http://bytes.com/topic/net/answers/456267-idataobject-ambiguous-symbol-error

对不起我的英语:)

关于c++ - Visual Studio 2012 项目中的 tesseract Remove_Reference 模糊符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23740431/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com