From 3299dbbbecf6d4872d8e3aab2fc651707d55ece6 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sat, 11 Nov 2023 11:26:34 -0700 Subject: [PATCH] Add test data Signed-off-by: Justin Georgi --- src/pages/detect.vue | 93 +++++++++++++++++++++++++++++++++---------- src/pages/testData.js | 55 +++++++++++++++++++++++++ 2 files changed, 127 insertions(+), 21 deletions(-) create mode 100644 src/pages/testData.js diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 8e54497..4a38976 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -1,7 +1,7 @@ \ No newline at end of file + + + + + \ No newline at end of file diff --git a/src/pages/testData.js b/src/pages/testData.js new file mode 100644 index 0000000..4d332b6 --- /dev/null +++ b/src/pages/testData.js @@ -0,0 +1,55 @@ +export default { + testData: { + "id": "manual", + "detections": [ + { + "top": 0.5543267130851746, + "left": 0.514180064201355, + "bottom": 0.7492024302482605, + "right": 0.5877177715301514, + "label": "Lung, Right", + "confidence": 91.04458093643188 + }, + { + "top": 0.24095627665519714, + "left": 0.5838792324066162, + "bottom": 0.9880742430686951, + "right": 0.8479938507080078, + "label": "Diaphragm", + "confidence": 88.7181043624878 + }, + { + "top": 0.3355500102043152, + "left": 0.3559962809085846, + "bottom": 0.4628722071647644, + "right": 0.6606560349464417, + "label": "Aorta", + "confidence": 85.63258051872253 + }, + { + "top": 0.46723803877830505, + "left": 0.28829023241996765, + "bottom": 0.8604505658149719, + "right": 0.5213174819946289, + "label": "Heart", + "confidence": 85.21404266357422 + }, + { + "top": 0.428698867559433, + "left": 0.1482502520084381, + "bottom": 0.5519284009933472, + "right": 0.5934896469116211, + "label": "Phrenic nerve", + "confidence": 81.82616829872131 + }, + { + "top": 0.4919853210449219, + "left": 0.4810255169868469, + "bottom": 0.5394672155380249, + "right": 0.5925238728523254, + "label": "Vena Cava, Caudal", + "confidence": 75.55835843086243 + } + ] + } +} \ No newline at end of file