Log in or register to post comments

Camera frame update

June 29, 2013 - 6:33am #1

I need to find a way to figure out whether or not the camera frame has updated since the last time Update() had been called. I use this which works fine in the Editor:

cameraDeviceImpl.WebCam.DidUpdateThisFrame

But unfortunately that doesn't work on a mobile device. 

Is there another way to get this information like a frame counter or something like that?

Camera frame update

June 29, 2013 - 7:32pm #3

Ok, that will work. Thanks

 

Camera frame update

June 29, 2013 - 11:40am #2

Hi elecman,

maybe one way of keeping track of frames is to use the ITrackerEventHanlder interface,

see:

https://developer.vuforia.com/resources/api/unity/interface_i_tracker_event_handler

The interface has a method called OnTrackablesUpdated(), which is executed for every camera frame that has been processed by Vuforia.

So, you could implement that interface, register it with the QCARBehaviour, and then you could use it to keep track of frames.

 

Log in or register to post comments