简体   繁体   English

在调试或发布模式下内置的OpenCV?

[英]OpenCV built in Debug or Release mode?

I want to know for sure if OpenCV was built in Debug or Release Mode. 我想确定是否OpenCV是在调试或发布模式下构建的。

I am running Linux Mint 17.1 Rebbeca. 我正在运行Linux Mint 17.1 Rebbeca。

I installed OpenCV by Synaptic. 我通过Synaptic安装了OpenCV。

After searching in google and in my computer I found that one of the configuration files is OpenCVModules-release.cmake - but still I cannot say that this file was used in compilation time. 在Google和我的计算机中搜索后,我发现其中一个配置文件是OpenCVModules-release.cmake-但仍然不能说此文件是在编译时使用的。

Do you know another method to check how the OpenCV was built? 您知道另一种检查OpenCV如何构建的方法吗?

在此处输入图片说明

Thank you. 谢谢。

try a : 尝试:

System.out.println(Core.getBuildInformation());

(or, for python): (或者,对于python):

print cv2.getBuildInformation()

you should see something like: 您应该看到类似以下内容:

 [java] General configuration for OpenCV 3.0.0-dev =====================================
 [java]   Version control:               3.0.0-beta-539-g08dd1e0
 [java] 
 [java]   Platform:
 [java]     Host:                        Linux 3.13.0-40-generic x86_64
 [java]     CMake:                       2.8.12.1
 [java]     CMake generator:             Unix Makefiles
 [java]     CMake build tool:            /usr/bin/make
 [java]     Configuration:               Release
 ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM