Sorry, this content is no longer available

Ask Your Question
0

multithreaded cascade classifire

asked Nov 18 '12

Hossein gravatar image

hi i want to know whether or not the cascadeclassifire can detect multithread ? and if yes, how can i enable multithreading in cascadeclassifire. I use detectmultiscale() function but i think it is not multithread. I want to use it in an realtime software and want to use it in multithreaded way. thanks

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Nov 18 '12

updated Nov 18 '12

hi.for parallel programming you can use TBB. In the CMake select WITH_TBB & make OpenCV with TBB. opencv_traincascade can use TBB in multi core system.

Preview: (hide)

Comments

I know traincascade can works multithreaded, but i want use cascadeclassifier mutithreaded. I want multi threading in detection stage not in learning stage !

Hossein gravatar imageHossein (Nov 19 '12)edit
1

Both stages train & test can use TBB.

Mostafa Sataki gravatar imageMostafa Sataki (Nov 19 '12)edit

thakns, I found following sentence under documentation of CascadeClassifier::detectMultiScale, that is : The function is parallelized with the TBB library. http://docs.opencv.org/modules/objdetect/doc/cascade_classification.html#cascadeclassifier-detectmultiscale

Hossein gravatar imageHossein (Nov 19 '12)edit

Question Tools

Stats

Asked: Nov 18 '12

Seen: 1,617 times

Last updated: Nov 18 '12