Ask Your Question
0

multithreaded cascade classifire

asked 2012-11-18 07:00:22 -0500

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-18 07:45:27 -0500

updated 2012-11-18 07:57:33 -0500

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.

edit flag offensive delete link more

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 ( 2012-11-18 22:10:27 -0500 )edit
1

Both stages train & test can use TBB.

Mostafa Sataki gravatar imageMostafa Sataki ( 2012-11-18 22:54:46 -0500 )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 ( 2012-11-18 23:08:16 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-18 07:00:22 -0500

Seen: 1,123 times

Last updated: Nov 18 '12