"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

QCAR_onUpdate

Dear All,

I am studying the Cloud Recognition application on Android platform and have a specific question regarding a callback function. In CloudReco.java, theĀ initApplicationNative method is called in the main thread in the onCreate method. Looking at the implementation of this method in CloudReco.cpp, it registers a callback function through "QCAR::registerCallback(&updateCallback);". Digging into the updateCallback object, the function to be called is identified asĀ virtual void QCAR_onUpdate(QCAR::State& state). My question is: when this function is called, does it start a new thread or not? If so, what other functions in CloudReco.cpp also live in this new thread? Thank you for your time.

Best Regards,

Peng

AlessandroB

Sun, 06/30/2013 - 06:56

Hi, the QCAR_onUpdate(QCAR::State& state) is called for every camera frame that is processed by QCAR;