I have been developing an android app which requires camera preview data for each frames,with addition to that I want pitch (Angle) values (From Rotation sensor) while capturing frame.I want to map the pitch values while capturing frames in real time, for now ,I have been mapping the pitch values in onpreviewframe, but I am not getting the correct results because of delay due to frame getting delivered to onpreviewframe callback.
I have registered the previewcallbackwithbuffer callback to get each frames data in onpreviewframe method.And I have been getting the sensor value from onSensorChanged callback.
Is there a way to map the pitch values while capturing the frame?.
If the above question is not understandable ,I am ready to post the code also..