Add local-detect mixin

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2023-12-19 10:26:30 -07:00
parent 7757d2348a
commit e376bae7b0

21
src/pages/local-detect.js Normal file
View File

@@ -0,0 +1,21 @@
export default {
methods: {
localDetect(region, imageData) {
switch (region) {
case 0:
var modelFile = 'some/path/to/thorax'
break;
case 1:
var modelFile = 'some/path/to/abdomen'
break;
case 2:
var modelFile = 'some/path/to/limbs'
break;
case 3:
var modelFile = 'some/path/to/head'
break;
}
return finalDetections
}
}
}