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)
|
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user