native opencv camera for LBP based detection
Hi,
I am working on a real time application and would expect to get at least 20 fps camera frame rate for object detection using LBP cascade classifier. I explored the tutorials of opencv and realized that access using java android camera is pretty slow (~10fps). However, the primary problem using native code for object detection seems to be the trained classifier file .xml as, apparently, there is no obvious way of reading the file from the native code. Can someone please provide some guideline?
To clarify things a bit more, what I am looking for is a way to read the .xml file from java only once and pass it somehow to the C++ native code, capture the video using native camera and detect and display objects from inside the native code.