Fix minor merge error in doods data
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -323,27 +323,12 @@
|
||||
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 = {
|
||||
"detector_name": this.detectorName,
|
||||
"detect": {
|
||||
"*": 1
|
||||
},
|
||||
"data": this.reader.result.split(',')[1]
|
||||
"data": this.imageView.split(',')[1]
|
||||
}
|
||||
|
||||
xhr.send(JSON.stringify(doodsData))
|
||||
|
||||
Reference in New Issue
Block a user