Build OpenCV 3.1 from source files on Windows

这篇博客记录了在Windows上手动编译OpenCV 3.1的过程,包括遇到的问题和解决方案,如CUDA支持、opencv_contrib模块的编译。作者还提到了在编译过程中遇到的Python调试版本链接错误,并探讨了CMake如何在没有明确指定路径的情况下找到OpenCV库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

=== 15/12/2016 更 ===
Now EVERYTHING is working!! It is real this time :)

=== 16/11/2016 小更 ===
Re-build OpenCV 3.1.0 with Tesseract support!! (OK, it’s not - just text detection is running. if try recognition nothing happened. But still built!!)

  • OpenCV CMakeLists.txt will try to detect dependent libraries automatically
  • For opencv_contrib, they are checked by:
    • # Extra OpenCV targets: uninstall, package_source, perf, etc.
      include(cmake/OpenCVExtraTargets.cmake)
    • OpenCVExtraTargets.cmake
  • For tesseract:
    • opencv_contrib\modules\text\FindTesseract.cmake
  • If no tesseract detected or configured manually, opencv_text can still build for Scene Text Detection but NO Scene Text Recognition apparently.

=== 15/11/2016 小更 ===
errors on build opencv with cvv module and qt5 #577
The build was absolutly clean. Configured by gui cmake 3.3.2. While configuring BUILD_DOCS, BUILD_PERF_TESTS and BUILD_TESTS entry was unchecked. WITH_QT was checked and OPENCV_EXTRA_MODULES_PATH specified. The rest remained in the default state. Build has been made through VS2013 x86 command prompt by command:
msbuild OpenCV.sln /flp:logfile=msvc2013_cvv.log /clp:ErrorsOnly > msvc2013_cvv_err.log

=== 更新 11/11/2016 ===
编译OpenCV 3.1.0 后,在新建的工程中用CMake 是怎么能自动找到新的OpenCV版本的???
=== 再更新 14/11/2016 ===

背景

也许还是绕不开Windows 的。

区别

OpenCV 3.1有预编译版本可以下载,只要添加一个opencv_world310.lib 即可使用。但是很多有用的功能都被转移到 一个单独的 opencv_contrib 库里面,需要额外编译。但是这个库又不独立,需要在编译 OpenCV 的时候把开关打开

操作

The official tutorial is way out of date.
Installation in Windows
This one is more recent an

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值