I'm trying and failing to make opencv_traincascade
use multiple threads. The only documentation I can find says to "build OpenCV with TBB". I'm not sure if I'm failing to successfully build OpenCV with TBB, or whether there's some flag I need to set for opencv_traincascade
.
I've downloaded the OpenCV version 2.3.1 windows superpack and tbb40_20111003oss_win.zip
, which I extracted to C:\tbb40_20111003oss
. I then generated VC8 .sln
and .proj
files using CMake, setting
WITH_TBB: ON
TBB_INCLUDE_DIR:PATH=C:\tbb40_20111003oss\include
TBB_LIB_DIR:PATH=C:/tbb40_20111003oss/lib/intel64/vc8
OpenCV then builds without errors, but when I run opencv_traincascade
it's singlethreaded. Does anyone know what I'm doing wrong?
Threading Building Blocks (TBB) is a C++ template library developed by Intel for writing software programs that take advantage of multi-core processors. OpenCV has a provided a simple API to take advantage of TBB.
For linux, do:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON BUILD_TBB=ON ..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With