Ask Your Question
0

haarCascade trainning - Cuda?

asked 2017-07-07 10:34:25 -0600

AlexX gravatar image

Hi everyone, is there any difference between cuda and no cuda haarcascades, or they are different for legacy reasons?

when we train a new one, do we get Cuda version or normal?

Thx in advance. Alexandre F.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-08 02:16:53 -0600

berak gravatar image

yes, there is a difference. the internal format was changed some time ago (e.g. to support lbp cascades), and for historic reasons, the cuda based cascade classifier can only use the OLD format.

unfortunately now, the current opencv_traincascade tool will ONLY generate cascades in the new format, so they're not usable with cuda. (there is a conversion tool, but that only works old -> new, so you cannot use that either)

imho, you should try to get an older (2.4.x) opencv version, and use opencv_haartraining (which generates OLD format cascades). just remember, that you won't be able to use LBP features there.

edit flag offensive delete link more

Comments

Thx for the help, i took some time to answer but it helped me long ago :) Is haar the best way to use facial detection? Or does it support any good alternative?

AlexX gravatar imageAlexX ( 2017-08-09 13:23:59 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-07 10:34:25 -0600

Seen: 1,302 times

Last updated: Jul 08 '17