2020-05-25 22:46:44 +03:00
|
|
|
<template>
|
2020-06-26 04:39:14 -07:00
|
|
|
<div>
|
|
|
|
|
<camera-and-pipeline-select />
|
2020-06-28 03:11:09 -07:00
|
|
|
<v-row no-gutters>
|
2020-06-26 04:39:14 -07:00
|
|
|
<!-- vision tabs -->
|
|
|
|
|
<v-col
|
2020-06-28 03:11:09 -07:00
|
|
|
cols="12"
|
|
|
|
|
sm="12"
|
|
|
|
|
md="7"
|
|
|
|
|
xl="6"
|
|
|
|
|
class="colsClass pr-8"
|
2020-06-26 04:39:14 -07:00
|
|
|
>
|
|
|
|
|
<v-tabs
|
|
|
|
|
v-if="($store.getters.currentPipelineIndex + 1) !== 0"
|
|
|
|
|
v-model="selectedTab"
|
|
|
|
|
fixed-tabs
|
2020-06-28 03:11:09 -07:00
|
|
|
background-color="#232c37"
|
2020-06-26 04:39:14 -07:00
|
|
|
dark
|
|
|
|
|
height="48"
|
2020-06-28 03:11:09 -07:00
|
|
|
slider-color="#ffd843"
|
2020-06-26 04:39:14 -07:00
|
|
|
>
|
|
|
|
|
<v-tab>Input</v-tab>
|
|
|
|
|
<v-tab>Threshold</v-tab>
|
|
|
|
|
<v-tab>Contours</v-tab>
|
|
|
|
|
<v-tab>Output</v-tab>
|
|
|
|
|
<v-tab>3D</v-tab>
|
|
|
|
|
</v-tabs>
|
|
|
|
|
<div
|
|
|
|
|
v-else
|
|
|
|
|
style="height: 48px"
|
|
|
|
|
/>
|
|
|
|
|
<div style="padding-left:30px">
|
|
|
|
|
<keep-alive>
|
|
|
|
|
<!-- vision component -->
|
|
|
|
|
<component
|
|
|
|
|
:is="selectedComponent"
|
|
|
|
|
ref="component"
|
|
|
|
|
v-model="$store.getters.pipeline"
|
|
|
|
|
@update="$emit('save')"
|
|
|
|
|
/>
|
|
|
|
|
</keep-alive>
|
|
|
|
|
</div>
|
|
|
|
|
</v-col>
|
|
|
|
|
<v-col
|
2020-06-28 03:11:09 -07:00
|
|
|
cols="12"
|
|
|
|
|
sm="12"
|
|
|
|
|
md="5"
|
|
|
|
|
xl="6"
|
2020-06-26 04:39:14 -07:00
|
|
|
class="colsClass"
|
|
|
|
|
>
|
|
|
|
|
<div>
|
|
|
|
|
<!-- camera image tabs -->
|
|
|
|
|
<v-tabs
|
|
|
|
|
v-if="($store.getters.currentPipelineIndex + 1) !== 0"
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
v-model="outputShowThresholded"
|
2020-06-28 03:11:09 -07:00
|
|
|
background-color="#232c37"
|
2020-06-26 04:39:14 -07:00
|
|
|
dark
|
|
|
|
|
height="48"
|
2020-06-28 03:11:09 -07:00
|
|
|
slider-color="#ffd843"
|
2020-06-26 04:39:14 -07:00
|
|
|
centered
|
|
|
|
|
style="padding-bottom:10px"
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
@change="handleTruthyPipelineData('outputShowThresholded')"
|
2020-06-26 04:39:14 -07:00
|
|
|
>
|
|
|
|
|
<v-tab>Normal</v-tab>
|
|
|
|
|
<v-tab>Threshold</v-tab>
|
|
|
|
|
</v-tabs>
|
|
|
|
|
<div
|
|
|
|
|
v-else
|
|
|
|
|
style="height: 58px"
|
|
|
|
|
/>
|
|
|
|
|
<!-- camera image stream -->
|
|
|
|
|
<div class="videoClass">
|
|
|
|
|
<v-row align="center">
|
2020-06-28 03:11:09 -07:00
|
|
|
<div style="position: relative; width: 100%; height: 100%;">
|
|
|
|
|
<cvImage
|
|
|
|
|
:address="$store.getters.streamAddress"
|
|
|
|
|
:scale="75"
|
|
|
|
|
@click="onImageClick"
|
|
|
|
|
/>
|
2020-07-12 10:37:04 -07:00
|
|
|
<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>
|
2020-06-28 03:11:09 -07:00
|
|
|
</div>
|
2020-06-26 04:39:14 -07:00
|
|
|
</v-row>
|
2020-06-28 03:11:09 -07:00
|
|
|
|
2020-06-26 04:39:14 -07:00
|
|
|
<v-row align="center">
|
|
|
|
|
<v-simple-table
|
|
|
|
|
style="text-align: center;background-color: transparent; display: block;margin: auto"
|
|
|
|
|
dense
|
|
|
|
|
dark
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:default>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="text-center">
|
|
|
|
|
Target
|
|
|
|
|
</th>
|
|
|
|
|
<th class="text-center">
|
|
|
|
|
Pitch
|
|
|
|
|
</th>
|
|
|
|
|
<th class="text-center">
|
|
|
|
|
Yaw
|
|
|
|
|
</th>
|
|
|
|
|
<th class="text-center">
|
|
|
|
|
Area
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
v-for="(value, index) in $store.getters.currentPipelineResults.targets"
|
2020-06-26 04:39:14 -07:00
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<td>{{ index }}</td>
|
|
|
|
|
<td>{{ parseFloat(value['pitch']).toFixed(2) }}</td>
|
|
|
|
|
<td>{{ parseFloat(value['yaw']).toFixed(2) }}</td>
|
|
|
|
|
<td>{{ parseFloat(value['area']).toFixed(2) }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</template>
|
|
|
|
|
</v-simple-table>
|
|
|
|
|
</v-row>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</v-col>
|
|
|
|
|
</v-row>
|
|
|
|
|
<!-- snack bar -->
|
|
|
|
|
<v-snackbar
|
|
|
|
|
v-model="snackbar"
|
|
|
|
|
:timeout="3000"
|
|
|
|
|
top
|
|
|
|
|
color="error"
|
|
|
|
|
>
|
|
|
|
|
<span style="color:#000">Can not remove the only pipeline!</span>
|
|
|
|
|
<v-btn
|
|
|
|
|
color="black"
|
|
|
|
|
text
|
|
|
|
|
@click="snackbar = false"
|
|
|
|
|
>
|
|
|
|
|
Close
|
|
|
|
|
</v-btn>
|
|
|
|
|
</v-snackbar>
|
|
|
|
|
</div>
|
2020-05-25 22:46:44 +03:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import CameraAndPipelineSelect from "../components/pipeline/CameraAndPipelineSelect";
|
|
|
|
|
import cvImage from '../components/common/cv-image'
|
2020-06-28 03:11:09 -07:00
|
|
|
import InputTab from './PipelineViews/InputTab'
|
|
|
|
|
import ThresholdTab from './PipelineViews/ThresholdTab'
|
|
|
|
|
import ContoursTab from './PipelineViews/ContoursTab'
|
|
|
|
|
import OutputTab from './PipelineViews/OutputTab'
|
|
|
|
|
import pnpTab from './PipelineViews/3D'
|
2020-05-25 22:46:44 +03:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'CameraTab',
|
|
|
|
|
components: {
|
|
|
|
|
CameraAndPipelineSelect,
|
|
|
|
|
cvImage,
|
|
|
|
|
InputTab,
|
|
|
|
|
ThresholdTab,
|
|
|
|
|
ContoursTab,
|
|
|
|
|
OutputTab,
|
|
|
|
|
pnpTab,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
selectedTab: 0,
|
|
|
|
|
snackbar: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
outputShowThresholded: {
|
2020-05-25 22:46:44 +03:00
|
|
|
get() {
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
return this.$store.getters.currentPipelineSettings.outputShowThresholded ? 1 : 0;
|
2020-05-25 22:46:44 +03:00
|
|
|
},
|
|
|
|
|
set(value) {
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
this.$store.commit('mutatePipeline', {'outputShowThresholded': !!value});
|
2020-05-25 22:46:44 +03:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectedComponent: {
|
|
|
|
|
get() {
|
|
|
|
|
return (this.$store.getters.currentPipelineIndex + 1) === 0 ? "InputTab" : ["InputTab", "ThresholdTab", "ContoursTab", "OutputTab", "pnpTab"][this.selectedTab];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fps: {
|
|
|
|
|
get() {
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
return this.$store.getters.currentCameraFPS;
|
2020-05-25 22:46:44 +03:00
|
|
|
}
|
2020-07-12 10:37:04 -07:00
|
|
|
},
|
|
|
|
|
latency: {
|
|
|
|
|
get() {
|
|
|
|
|
return this.$store.getters.currentPipelineResults.latency;
|
|
|
|
|
}
|
2020-05-25 22:46:44 +03:00
|
|
|
}
|
2020-06-26 04:39:14 -07:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
onImageClick(event) {
|
|
|
|
|
if (this.selectedTab === 1) {
|
|
|
|
|
this.$refs.component.onClick(event);
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-05-25 22:46:44 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.colsClass {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.videoClass {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
width: 80px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|