diff --git a/src/js/structures.js b/src/js/structures.js index 5ba2b8c..52f9668 100644 --- a/src/js/structures.js +++ b/src/js/structures.js @@ -104,7 +104,7 @@ export class StructureBox { } } -export default class Structure { +export class Structure { constructor(structResult) { this.label = structResult.label this.confidence = structResult.confidence diff --git a/src/pages/detect.vue b/src/pages/detect.vue index e5ab0e4..0ef2e7a 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -144,8 +144,7 @@ import touchMixin from './touch-mixin' import detectionWorker from '@/assets/detect-worker.js?worker&inline' - import Structure from '../js/structures' - import { StructureBox } from '../js/structures' + import { Structure, StructureBox } from '../js/structures' const regions = ['Thorax','Abdomen/Pelvis','Limbs','Head and Neck'] let activeRegion = 4