Ask Your Question

Is it possible to detect face using CUDA in OpenCV ?

asked 2016-03-17 01:58:16 -0500

Sanman gravatar image

I am trying to compare the serial and parallel implementation of face detection using Haar features. I have already implemented the serial process. I want to know whether OpenCV provides Haar Cascade file for parallel implementation of face detection using Haar features ? and if there is such thing is possible then what is the theory behind it ? Please help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-17 03:27:36 -0500

You can find here the documentation about the cascade classifier in Cuda. It supports HAAR and LBP.

The CPU version of OpenCV cascade classifier is already parallelized (on CPU or event with OpenCL if you have compiled OpenCV with the following support).

edit flag offensive delete link more


Thank you for your response. The problem I am facing is what if I want to parallelize the code on GPU only (without OpenCL or the parallelized CPU version) ? and why there are two different versions of cascade file (haarcascade & haarcascades_cuda) in the data folder of OpenCV installation ? Is there any difference between them ? Will I get speed up in detection process if I use CUDA and the CUDA haarcascade xml file ?

Sanman gravatar imageSanman ( 2016-03-17 04:02:51 -0500 )edit

Question Tools

1 follower


Asked: 2016-03-17 01:58:16 -0500

Seen: 1,950 times

Last updated: Mar 17 '16