Ask Your Question
1

face detection application multi-threaded or not ?

asked 2019-01-31 03:14:26 -0500

Whether face-detection application that is given as example in OpenCV library is multi-threaded or not ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2019-01-31 04:58:49 -0500

updated 2019-01-31 05:15:22 -0500

i tested facedetect.cpp and the output is like below

Video capturing has been started ...
detection time = 492.357 ms
detection time = 71.8476 ms
detection time = 81.1626 ms
detection time = 85.015 ms
detection time = 83.3563 ms

then i add setNumThreads(0); at the beginning of the code to disable multi-threading and the output is like below

Video capturing has been started ...
detection time = 688.146 ms
detection time = 258.817 ms
detection time = 298.695 ms
detection time = 334.468 ms
detection time = 185.794 ms
detection time = 222.631 ms
edit flag offensive delete link more

Comments

an astonishing result !

berak gravatar imageberak ( 2019-01-31 05:52:35 -0500 )edit

Without setNumThreads(0); at the beginning of the code by default is face detection program multi threaded ? Or are there any changes we have to do to run on multi cores ?

Thank you.

Billa Surendra gravatar imageBilla Surendra ( 2019-01-31 22:47:45 -0500 )edit

please read the documentation setNumThreads(0); again

sturkmen gravatar imagesturkmen ( 2019-02-01 01:11:00 -0500 )edit

Thanks for your suggestion..my problem solved

Billa Surendra gravatar imageBilla Surendra ( 2019-02-12 02:55:47 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-01-31 03:14:26 -0500

Seen: 122 times

Last updated: Jan 31