[backend] Fix FPS calculation, display latency in UI (#31)

This commit is contained in:
Matt
2020-07-12 10:37:04 -07:00
committed by GitHub
parent 30b4b8d111
commit 54445dad35
4 changed files with 110 additions and 5 deletions

View File

@@ -79,6 +79,7 @@ export default new Vuex.Store({
pipelineResults: [
{
fps: 0,
latency: 0,
targets: [{
// Available in both 2D and 3D
pitch: 0,

View File

@@ -77,7 +77,8 @@
:scale="75"
@click="onImageClick"
/>
<span style=" position: absolute; top: 0.2%; left: 13%;">FPS:{{ parseFloat(fps).toFixed(2) }}</span>
<span style=" position: absolute; top: 0.2%; left: 13%;">FPS: {{ parseFloat(fps).toFixed(2) }}</span>
<span style=" position: absolute; top: 0.2%; right: 13%;">Latency: {{ parseFloat(latency).toFixed(2) }}ms</span>
</div>
</v-row>
@@ -185,6 +186,11 @@
get() {
return this.$store.getters.currentCameraFPS;
}
},
latency: {
get() {
return this.$store.getters.currentPipelineResults.latency;
}
}
},
methods: {