Ask Your Question

laurencedev's profile - activity

2020-04-22 13:27:13 -0600 received badge  Notable Question (source)
2019-09-14 04:53:34 -0600 received badge  Popular Question (source)
2018-10-15 09:47:41 -0600 commented answer char* to FileNode / Hide our XML configurations

Hi @berak, made the FileStorage part via the way you suggested. For the 'xml to char*' one, do you suggest sth. like c

2018-10-15 09:47:05 -0600 commented answer char* to FileNode / Hide our XML configurations

Hi @berak, made the FileStorage part via the way you suggested. For the 'xml to char*' one, do you suggest sth. like c

2018-10-15 09:46:34 -0600 commented answer char* to FileNode / Hide our XML configurations

Hi @berak, made the FileStorage part via the way you suggested. For the 'xml to char*' one, do you suggest sth. like c

2018-10-15 09:38:19 -0600 marked best answer char* to FileNode / Hide our XML configurations

We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier directly to others. One way we were trying is to pre-compile the xml's content into the program and use it to instanlized a CascadeClassifier when it runs.

So we found that, through code like the below, the content in a xml can be compiled into the .exe(executable) file, and presented as a const char *. However, the constractors of CascadeClassifier takes either a filename or a FileNode object as a parameter for instanlization, cannot be a char*.

Is there a way to transform a const char * to a FileNode object?

const char *VX =
#include "./models/haarcascade_smile_R.xml"
;

Besides, are there anyother ways to 'hide' the configuration? Make it not so easy to be 'human-readable' as an xml.

2018-10-15 04:40:47 -0600 edited question char* to FileNode / Hide our XML configurations

char* to FileNode / Hide our XML configurations We use CascadeClassifier in a demo program, but we don't won't pass the

2018-10-15 04:40:32 -0600 edited question char* to FileNode / Hide our XML configurations

char* to FileNode We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier di

2018-10-15 04:39:01 -0600 edited question char* to FileNode / Hide our XML configurations

char* to FileNode We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier di

2018-10-15 04:38:12 -0600 edited question char* to FileNode / Hide our XML configurations

char* to FileNode We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier di

2018-10-15 04:36:53 -0600 asked a question char* to FileNode / Hide our XML configurations

char* to FileNode We use CascadeClassifier in a demo program, but we don't won't pass the xml file of the classifier dir

2018-09-06 12:38:50 -0600 commented answer How to set CMake options to compile some modules only?

No similar white list found for WITH_* yet, but all components are list in HERE

2018-09-06 12:34:27 -0600 commented answer How to set CMake options to compile some modules only?

Thanks @berak, this is what exact what i am looking for! For others who were confused also: 1. BUILD_LIST is acting lik

2018-09-06 11:44:33 -0600 commented answer How to set CMake options to compile some modules only?

Hi, @ak1, thanks for the response. Get some interesting findings on the way you mentioned also. Thanks bro !

2018-09-06 11:42:21 -0600 commented answer How to set CMake options to compile some modules only?

Thanks @berak, this is what exact what i am looking for! For others who were confused also: 1. BUILD_LIST is acting lik

2018-09-06 11:41:33 -0600 commented answer How to set CMake options to compile some modules only?

Thanks @berak, this is what exact what i am looking for! For others who were confused also: 1. BUILD_LIST is acting lik

2018-09-06 11:41:02 -0600 commented answer How to set CMake options to compile some modules only?

Thanks @berak, this is what exact what i am looking for! For other who were confused also: 1. BUILD_LIST is acting like

2018-09-06 11:20:28 -0600 commented answer How to set CMake options to compile some modules only?

Thanks @berak, this is what exact what i am looking for! Made some following up findings attached below, in case anyone

2018-09-06 11:18:45 -0600 marked best answer How to set CMake options to compile some modules only?

We can set the options like the following to compile some but not others:

-DBUILD_opencv_xfeatures2d=ON
-DBUILD_opencv_apps=OFF

As the above, my understanding is xfeatures2d will be compiled (The Makefiles will set it as a target for compilation) and apps definitely not, but other modules haven't specified in the options will be compiled by default. However, if apps is required for xfeatures2d then xfeatures won't be compiled and cmake output will warning this.

What the problems with the above understanding ?

Is there a way to say compile xfeatures2d and the modules it required only ?

Furthermore, is there a way to say compile xfeatures2d and the modules it required and optionally required ones?

How about the WITH options, like -DWITH_1394=OFF, what is the default values for them ? Or, by default, it depends on the environment its running on? For instance, if CMake can find all (local) libraries needed for CUDA, -DWITH_CUDA will be ON by default.

2018-09-06 11:18:45 -0600 received badge  Scholar (source)
2018-09-06 08:14:38 -0600 received badge  Supporter (source)
2018-09-06 02:16:35 -0600 edited question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:45:34 -0600 edited question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:41:11 -0600 edited question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:38:55 -0600 asked a question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:38:55 -0600 asked a question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:38:38 -0600 asked a question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-09-06 01:38:35 -0600 asked a question How to set CMake options to compile some modules only?

How to set CMake options to compile some modules only? We can set the options like the following to compile some but not

2018-08-28 08:33:15 -0600 received badge  Student (source)
2018-08-28 08:13:48 -0600 commented question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

ref http://answers.opencv.org/question/198108/cmake-with-tbb-on-win64-unfamiliar-cmake-gui-fields/for how to enable TBB/

2018-08-28 08:09:39 -0600 commented question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

ref https://stackoverflow.com/questions/16767464/how-to-install-opencv-with-tbb-enabled-using-mingw for how to enable TB

2018-08-28 06:20:14 -0600 commented question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Directly cause is no parallel framework has explicitly specified in cmake options. Besides, there is a potential bug i

2018-08-28 05:05:32 -0600 received badge  Enthusiast
2018-08-26 21:36:03 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64 Env settings: OS: Windows 10 64bit ToolChain: MinG

2018-08-26 20:49:53 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:49:01 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:47:20 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:35:04 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:34:35 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:34:03 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` on Windows Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configure

2018-08-26 20:33:18 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configured with "x86

2018-08-26 20:33:05 -0600 edited question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configured with "x86

2018-08-26 20:29:19 -0600 asked a question Failed to run the test of `test_fast.cpp` on Windows with MinGW-W64

Failed to run the test of `test_fast.cpp` Env settings: OS: Windows 10 64bit ToolChain: MinGW-W64 configured with "x86

2018-08-26 10:47:53 -0600 edited question Variable `OPENCV_TEST_DATA_PATH` is not recognized in Windows OS

Variable `OPENCV_TEST_DATA_PATH` is not recognized in Windows OS Was trying to run some internal tests of OpenCV Contrib

2018-08-26 10:47:48 -0600 edited question Variable `OPENCV_TEST_DATA_PATH` is not recognized in Windows OS

How to set OPENCV_TEST_DATA_PATH in Windows OS Was trying to run some internal tests of OpenCV Contrib. On Linux/Ubuntu,