Ask Your Question
0

Is there any way to combine HOG and LBP in a cascade.xml file?

asked 2018-01-15 05:03:49 -0600

loviso gravatar image

Hello

I used opencv_traincascade to generate cascade.xml files for both lbp and hog. Now I want to know if there is any way to combine those two features into a unique xml file? or is there any opencv utility that can generate an xml file with combined features?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-01-15 07:40:38 -0600

Some comments to this

  • OpenCV cascades with HOG are only available in 2.4.x. That means you are basically using an outdated and old version of the functionality. I advise against that.
  • OpenCV does not support adding multiple features into a single cascade. For that we would need to change the backend and allow any arbitrary number of features for a model to be trained. I still think this is a valid idea but we need someone with time to implement it. If you would be up for it, you could suggest it as a GSoC2018 project proposal!
edit flag offensive delete link more

Comments

i tried ssd_mobilenet_object_detection.cpp yesterday. it seems OpenCV's cascade classifier and HOGDescriptor going to be legacy

sturkmen gravatar imagesturkmen ( 2018-01-15 08:05:13 -0600 )edit

Ah well I am not convinced of that .. we still have tons of setups where cascades in all of their versions have equally well results but tend to be faster on large datasets. Furthermore, training mobilenets on new classes can be quite challenging I think. But yes, in the long run, deep learned object detectors will beat cascade classifiers.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-01-15 08:18:34 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-15 05:03:49 -0600

Seen: 656 times

Last updated: Jan 15 '18