Fix minor merge error in doods data

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2023-12-13 12:51:56 -07:00
parent e03920255e
commit 9dca8012e3

View File

@@ -323,27 +323,12 @@
self.resultData = JSON.parse(xhr.response) self.resultData = JSON.parse(xhr.response)
} }
/*
var detectStructures = {}
if (this.detectorLabels.every( s => { return s.detect } )) {
detectStructures['*'] = this.detectorLevel
} else {
this.detectorLabels.forEach( s => {
if (s.detect) detectStructures[s.name] = this.detectorLevel
})
}
var doodsData = {
"detector_name": this.detectorName,
"detect": detectStructures,
"data": this.imageView.split(',')[1]
}
*/
var doodsData = { var doodsData = {
"detector_name": this.detectorName, "detector_name": this.detectorName,
"detect": { "detect": {
"*": 1 "*": 1
}, },
"data": this.reader.result.split(',')[1] "data": this.imageView.split(',')[1]
} }
xhr.send(JSON.stringify(doodsData)) xhr.send(JSON.stringify(doodsData))