Add local-detect mixin
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
21
src/pages/local-detect.js
Normal file
21
src/pages/local-detect.js
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user