Hi,
I am trying to get the FPS and inference/latency time from the mediapipe JavaScript Solution API.
In the compressed control_utils_local.js, the FPS data can be obtained from b.toFixed(0) in function qa(a, b).
W.prototype.tick = function() {
var a = Math.floor(performance.now() / 1E3);
1 <= a - this.i && (qa(this, this.counter), this.i = a, this.counter = 0);
++this.counter
};
function qa(a, b) {
a.g.shift();
a.g.push(b);
......
a.h.textContent = b.toFixed(0) + " fps"
};
Thanks,
Min Zhang