【问题标题】:Qt Can't use OCR Tesseract with OpenCV 3.2 UbuntuQt 无法在 OpenCV 3.2 Ubuntu 中使用 OCR Tesseract
【发布时间】:2017-08-08 12:24:50
【问题描述】:

我正在尝试使用cv::text::OCRTesseract 模块,但出现错误:

undefined reference to `cv::text::OCRTesseract::create(char const*, char const*, char const*, int, int)' 

我安装了 Tesseract 并从命令行对其进行了测试。

我的ocr.hpp 文件如下所示:

红线告诉unexpected token 'create'

是否缺少任何库或未链接的库或其他内容?

我没有找到有效的解决方案,请帮忙!

【问题讨论】:

    标签: c++ opencv computer-vision shared-libraries ocr


    【解决方案1】:

    仅包含库的头文件是不够的,您还需要将您的应用程序链接到库。我没有使用 OpenCV 和 Tesseract 的经验,但听起来您需要添加对这两个库的引用。

    如果您使用 Qt Creator,您可以在 this manual page 中了解如何执行此操作。

    【讨论】:

      猜你喜欢
      • 2017-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-03
      • 2018-07-30
      • 1970-01-01
      相关资源
      最近更新 更多