hoangduit / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

Add support for the new Haar classifier definition format in OpenCV #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The OpenCV code has been recently updated to support a new Haar cascade 
definition format. It would be nice if the framework could support this new 
format as well.

Original issue reported on code.google.com by cesarso...@gmail.com on 10 Jan 2014 at 3:43

GoogleCodeExporter commented 9 years ago
Examples of the two different formats are available at

 - https://github.com/Danukeru/FOUCAM/blob/master/haarcascade_frontalface.xml
 - https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_alt.xml

In order to add support for the new format, it would be necessary to implement 
a new HaarCascadeSerializationObject (in 
https://github.com/accord-net/framework/blob/development/Sources/Accord.Vision/D
etection/Haar%20Cascade/HaarCascadeStage.cs ) and, most likely, rewrite the 
existing XML attributes over the classes methods with the different schema. 
Compatibility with the older format must be preserved.

Original comment by cesarso...@gmail.com on 28 May 2014 at 8:53