config ajax, and debug new_added_pts
This commit is contained in:
parent
37830ee869
commit
82c260e420
@ -124,7 +124,7 @@ export default {
|
|||||||
|
|
||||||
sub_navi_name: ["Sequence Visualization", "Inference Result Visualization", "Inference Result Analysis","Online Inference"],
|
sub_navi_name: ["Sequence Visualization", "Inference Result Visualization", "Inference Result Analysis","Online Inference"],
|
||||||
curr_navi_idx: 0,
|
curr_navi_idx: 0,
|
||||||
curr_sub_navi_idx: 2,
|
curr_sub_navi_idx: 0,
|
||||||
components: [SequenceVisualize, SeqInferenceResultVisualize, InferenceResultAnalysis, OnlineInference],
|
components: [SequenceVisualize, SeqInferenceResultVisualize, InferenceResultAnalysis, OnlineInference],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -4,8 +4,10 @@
|
|||||||
<h1>Inference Result Visualization</h1>
|
<h1>Inference Result Visualization</h1>
|
||||||
</div>
|
</div>
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col span="8">
|
<Col span="8">
|
||||||
|
|
||||||
<Affix :offset-top="30">
|
<Affix :offset-top="30">
|
||||||
<UploadInferenceCard
|
<UploadInferenceCard
|
||||||
@update-seq="updateSeqData"
|
@update-seq="updateSeqData"
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
<Divider />
|
<Divider />
|
||||||
<Row>
|
<Row>
|
||||||
<Col span="8">
|
<Col span="8">
|
||||||
<Affix :offset-top="30">
|
<Alert type="warning" show-icon>
|
||||||
|
Current Visualization Website is in Demo Version
|
||||||
|
</Alert>
|
||||||
|
<Affix :offset-top="10">
|
||||||
<SelectSeqCard
|
<SelectSeqCard
|
||||||
@update-seq="updateSeqData"
|
@update-seq="updateSeqData"
|
||||||
@set-loading="setLoading"
|
@set-loading="setLoading"
|
||||||
|
@ -96,9 +96,6 @@ export default {
|
|||||||
|
|
||||||
model_pts: null,
|
model_pts: null,
|
||||||
|
|
||||||
combined_point_cloud: [],
|
|
||||||
new_point_cloud: [],
|
|
||||||
|
|
||||||
best_seq: null,
|
best_seq: null,
|
||||||
|
|
||||||
curr_frame_info: {
|
curr_frame_info: {
|
||||||
@ -188,6 +185,9 @@ export default {
|
|||||||
if (this.newPointCloudMesh) {
|
if (this.newPointCloudMesh) {
|
||||||
this.pts_scene.remove(this.newPointCloudMesh);
|
this.pts_scene.remove(this.newPointCloudMesh);
|
||||||
}
|
}
|
||||||
|
if (this.newAddedPtsMesh) {
|
||||||
|
this.pts_scene.remove(this.newAddedPtsMesh);
|
||||||
|
}
|
||||||
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
|
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
|
||||||
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
|
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
|
||||||
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
|
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
|
||||||
|
@ -62,10 +62,6 @@ export default {
|
|||||||
|
|
||||||
model_pts: null,
|
model_pts: null,
|
||||||
|
|
||||||
combined_point_cloud: [],
|
|
||||||
new_point_cloud: [],
|
|
||||||
new_added_pts: [],
|
|
||||||
|
|
||||||
best_seq: null,
|
best_seq: null,
|
||||||
hasImg: false,
|
hasImg: false,
|
||||||
|
|
||||||
@ -154,6 +150,9 @@ export default {
|
|||||||
if (this.newPointCloudMesh) {
|
if (this.newPointCloudMesh) {
|
||||||
this.pts_scene.remove(this.newPointCloudMesh);
|
this.pts_scene.remove(this.newPointCloudMesh);
|
||||||
}
|
}
|
||||||
|
if (this.newAddedPtsMesh) {
|
||||||
|
this.pts_scene.remove(this.newAddedPtsMesh);
|
||||||
|
}
|
||||||
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
|
this.combinedPointCloudMesh = this.createPointCloud(this.curr_frame_info["combined_point_cloud"], 0x0000ff);
|
||||||
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
|
this.newPointCloudMesh = this.createPointCloud(this.curr_frame_info["new_point_cloud"], 0xff0000);
|
||||||
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
|
this.newAddedPtsMesh = this.createPointCloud(this.curr_frame_info["new_added_pts"], 0x00ff00);
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
<Icon type="md-settings" size="20" style="color: #464c5b;" />
|
<Icon type="md-settings" size="20" style="color: #464c5b;" />
|
||||||
Select Sequence
|
Select Sequence
|
||||||
</p>
|
</p>
|
||||||
<Alert type="warning" show-icon>
|
<Button shape="circle" type="success" slot="extra" style="" :disabled="!localLabelName || localDisableBtn" @click="handleLoadSeq" :loading="localDisableBtn">
|
||||||
Current Visualization Website is in Demo Version
|
<Icon type="md-play" size="14" />
|
||||||
<span slot="desc">The dataset directory is restricted to the sample dataset.</span>
|
Load Sequence
|
||||||
</Alert>
|
</Button>
|
||||||
|
|
||||||
<Row style="margin-bottom: 10px; margin-left: 10px; margin-right: 10px;">
|
<Row style="margin-bottom: 10px; margin-left: 10px; margin-right: 10px;">
|
||||||
<Col span="10">
|
<Col span="10">
|
||||||
@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
<Row type="flex" justify="center">
|
<Row type="flex" justify="center">
|
||||||
<Button type="success" style="width:60%" :disabled="!localSceneName || localDisableBtn" @click="handleLoadSeq" :loading="localDisableBtn">
|
<Button type="success" style="width:60%" :disabled="!localLabelName || localDisableBtn" @click="handleLoadSeq" :loading="localDisableBtn">
|
||||||
Load Sequence
|
Load Sequence
|
||||||
</Button>
|
</Button>
|
||||||
</Row>
|
</Row>
|
||||||
@ -152,6 +152,7 @@ export default {
|
|||||||
this.localTotalMaxCoverageRate = data.total_max_coverage_rate;
|
this.localTotalMaxCoverageRate = data.total_max_coverage_rate;
|
||||||
this.localTotalMinCoverageRate = data.total_min_coverage_rate;
|
this.localTotalMinCoverageRate = data.total_min_coverage_rate;
|
||||||
this.localTotalMeanCoverageRate = data.total_mean_coverage_rate;
|
this.localTotalMeanCoverageRate = data.total_mean_coverage_rate;
|
||||||
|
this.localLabelName = null;
|
||||||
} else {
|
} else {
|
||||||
this.$Message.error("error");
|
this.$Message.error("error");
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,9 @@ import qs from 'qs';
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { Message } from 'view-design'
|
import { Message } from 'view-design'
|
||||||
|
|
||||||
// var baseURL = "http://localhost:13333/"
|
var devURL = "http://localhost:13333/"
|
||||||
|
var proURL = ""
|
||||||
|
var baseURL = process.env.NODE_ENV === 'development' ? devURL : proURL;
|
||||||
export default {
|
export default {
|
||||||
post(url, params) {
|
post(url, params) {
|
||||||
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';//配置请求头
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';//配置请求头
|
||||||
@ -13,7 +14,7 @@ export default {
|
|||||||
return qs.stringify(data)
|
return qs.stringify(data)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var res = axios.post(`${url}`, params).then((res) => {
|
var res = axios.post(`${baseURL}${url}`, params).then((res) => {
|
||||||
console.log("res:", res)
|
console.log("res:", res)
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if (res.data.exception != undefined && res.data.exception) {
|
if (res.data.exception != undefined && res.data.exception) {
|
||||||
@ -37,7 +38,7 @@ export default {
|
|||||||
return JSON.stringify(data)
|
return JSON.stringify(data)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var res = axios.post(`${url}`, params).then((res) => {
|
var res = axios.post(`${baseURL}${url}`, params).then((res) => {
|
||||||
console.log("res:", res)
|
console.log("res:", res)
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if (res.data.exception != undefined && res.data.exception) {
|
if (res.data.exception != undefined && res.data.exception) {
|
||||||
@ -64,7 +65,7 @@ export default {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
var res = axios.post(`${url}`, params).then((res) => {
|
var res = axios.post(`${baseURL}${url}`, params).then((res) => {
|
||||||
console.log("res:", res)
|
console.log("res:", res)
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if (res.data.exception != undefined && res.data.exception) {
|
if (res.data.exception != undefined && res.data.exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user