Skip to content

Commit

Permalink
fix: silent console error when trying to draw a detection box for falls
Browse files Browse the repository at this point in the history
Merge pull request #593 from ivelin/master
  • Loading branch information
Ivelin Ivanov authored Mar 29, 2021
2 parents 1997109 + 3b6b200 commit 8625e2a
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 94 deletions.
197 changes: 105 additions & 92 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/components/DetectionBoxes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
v-resize.initial="onResize"
ref="container"
v-if="detections.length > 0 && detections[0].box !== undefined"
>
<v-overlay
absolute
Expand Down Expand Up @@ -64,6 +65,9 @@ export default {
directives: {
resize
},
created () {
// console.info('Drawing detection boxes for', this.detections) // eslint-disable-line no-console
},
methods: {
changeRect: function () {
const container = this.$refs.container
Expand Down
3 changes: 1 addition & 2 deletions src/views/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
v-if="sample.args.thumbnail_file_name"
:src="imageURL[sample.args.id]"
class="white--text align-start"
alt="Object Detection"
alt="Detection Event"
contain
@load="setImageLoaded(index)"
>
Expand All @@ -110,7 +110,6 @@
>
<detection-boxes
:detections="sample.args.inference_result"
:tensor_image_size="sample.args.inference_meta.tensor_image_size"
/>
<v-avatar
:color="eventColor(sample)"
Expand Down

0 comments on commit 8625e2a

Please sign in to comment.