Ask Your Question

GPU cascade classifier and cascade format

asked 2013-10-02 02:30:10 -0600

toni gravatar image


In the OpenCV documentation I have come across the following statement, about loading cascade with GPU classifier:

"Only the old haar classifier (trained by the haar training application) and NVIDIA’s nvbin are supported for HAAR and only new type of OpenCV XML cascade supported for LBP."

Is this true or the documentation is simply outdated? I would try myself, but I am still waiting for my NVIDIA card so the question I am facing now is whether to tackle this problem until my card arrives.

If the statement is true, is there any simple way to convert a "new" cascade based on Haar features (trained with traincascade) into the old format cascade (trained with Haar training application)

Any other suggestions are much appreciated. Thanks in advance!

edit retag flag offensive close merge delete


I have the same question.. Were you able to convert the new training's cascade.xml into the old format?? Or did you find a work-around/alternative to this issue??

srao gravatar imagesrao ( 2014-05-15 08:15:12 -0600 )edit

I am in a similar situation where I would like to convert new cascade xml file to the old xml format. Were you able to resolve the issue?

hritzanimesh gravatar imagehritzanimesh ( 2014-10-30 10:34:40 -0600 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-08-14 11:40:27 -0600

xuemin gravatar image

when you run the opencv_traincascade command to create your .xml file, you can add the option of -baseFormatSave which will save your .xml file in old format. please see:

edit flag offensive delete link more

Question Tools


Asked: 2013-10-02 02:30:10 -0600

Seen: 1,809 times

Last updated: Oct 02 '13