Ask Your Question

Matlab haar cascade opencv android compatibility

asked 2016-03-03 01:44:34 -0500

Pulkit gravatar image

updated 2019-12-09 07:55:06 -0500

Akhil Patel gravatar image

I trained a haar cascade classifier in matlab. I want to use the model(xml file) in opencv with android. The xml file says its compatible with OpenCV 2.4. I am using OpenCV 3.0 in android. Will it have any compatibility issue? I am using Android Studio.

edit retag flag offensive close merge delete


I never tried it before, but if I am correctly, then matlab is outputting the exact same format. Furthermore, the format of the new models using traincascade has NOT been changed from 2.4 to 3.x.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-03-03 04:14:58 -0500 )edit

Thanks for reply. I tried it it doesnt work actually. My xml file was compatible with 2.4 but i tried loading it in 3.0. It was loading the xml file. When i changed my version back to 2.4, everything worked as it should.

Pulkit gravatar imagePulkit ( 2016-03-03 06:45:27 -0500 )edit

Then they are probably using the old xml format, which is still supported in OpenCV 2.4.x and not in 3.x ... which is a pitty, because it will slowly disappear.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-03-03 07:10:25 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-05-18 11:15:11 -0500

hello, im trying to develop a software for detect cars on android platform. i have c# codes but i cant use them for android. Can you share your android program or codes ?

edit flag offensive delete link more

Question Tools



Asked: 2016-03-03 01:44:34 -0500

Seen: 224 times

Last updated: Mar 03 '16