Ask Your Question
0

Using GpuCascadeClassifier with self trained cascade file

asked 2017-02-07 04:14:09 -0600

ashgard gravatar image

updated 2017-02-07 06:09:01 -0600

I have trained a couple of cascade.xml files using opencv_traincascade. The feature type I'm using is HOG and LBP (not HAAR). The MultiScaleDetection works pretty good. But I would like to speed up the function a bit. I've seen that using GpuCascadeClassifier could improve the speed of the MultiScaleDetection quite a bit. However, If I replace my CascadeClassifier with the GpuCascadeClassifier I get the following error "OpenCV: The node does not represent a user object (unknown type?)".

I've seen people suggesting to use the old xml format (-baseFormatSave flag in opencv_traincascade). However, that only works for HAAR feature types, as I am using HOG and LBP that doesn't work me.

The version (emgucv) I'm using is: emgucv-windows-universal-cuda 2.4.10.1940

Should I modify something in the opencv_traincascade process? Would it perhaps work with the latest 3.0 version? Does anyone have suggestions for me?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-02-07 08:48:22 -0600

berak gravatar image

i don't think, you can do anything here.

you're right, the gpu cascades can only use the old format, which limits you to haar features only .

(though there is code for LBP features for the gpu, the bottleneck is the cascade format)

also please note, that opencv3 removed support for HOG cascades entirely.

edit flag offensive delete link more

Comments

Thanks for you reply! That raises a couple of new questions:

I've quickly looked at the GpuCascadeClassifier alternative in opencv 3. I believe that's CudaCascadeClassifier, correct?

  • I suppose the Gpu varient of opencv 2 is more general(?) and the Cuda version of opencv 3 is only supported by some graphic cards of Nvida?
  • Does this function accept self trained cascade files?

Too bad the HOG cascade is not supported anymore. I was using HOG because of it's ability to detect objects based on shape.

  • Isn't there still a HOGDescriptor::detectMultiScale function?
  • What's the supposed alternative?
ashgard gravatar imageashgard ( 2017-02-07 15:14:59 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-07 04:14:09 -0600

Seen: 469 times

Last updated: Feb 07 '17