I've tried 2 different methods to calculate fps:
Observation
My question is what is the best formula to calculate the fps?
ps: I'm using Camera2 interface.
Thanks.
Do the first method however average over the last 10 frames (or 5 frames, it is a matter of taste, but do not average over a long range). This way it is less prone to fluctuations.
Method 2 will hide in my opinion many local subtleties and you wind up killing all details by that massive averaging.