修改档案中足底压力,头部姿态数据
This commit is contained in:
parent
62cf394af2
commit
61a673c862
@ -1571,6 +1571,10 @@ async function saveDetectionData() {
|
||||
if(tempInfo.value.imu_data != null ){
|
||||
head_pose=tempInfo.value.imu_data
|
||||
}
|
||||
if(headPoseMaxValues !=null){
|
||||
head_pose.headPoseMaxValues = headPoseMaxValues.value
|
||||
}
|
||||
|
||||
let screen_location = contenGridRef.value.getBoundingClientRect()
|
||||
// 调用后端API保存截图
|
||||
const result = await sendDetectionData({
|
||||
|
@ -282,13 +282,15 @@
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
最大旋转角:<span class="detail-head-text">左:-55.2°</span>
|
||||
<span class="detail-head-text">右:-55.2°</span>
|
||||
最大旋转角:<span class="detail-head-text">左:{{headPoseMaxValues.rotationLeftMax.toFixed(1)}}°</span>
|
||||
<span class="detail-head-text">右:{{ headPoseMaxValues.rotationRightMax.toFixed(1) }}°</span>
|
||||
</div>
|
||||
<div style="margin-top: 15px;">最大倾斜角:<span class="detail-head-text">左:-55.2°</span>
|
||||
<span class="detail-head-text">右:-55.2°</span></div>
|
||||
<div style="margin-top: 15px;">最大俯仰角:<span class="detail-head-text">俯:-55.2°</span>
|
||||
<span class="detail-head-text">仰:-55.2°</span></div>
|
||||
<div style="margin-top: 15px;">最大倾斜角:
|
||||
<span class="detail-head-text">左:{{ headPoseMaxValues.tiltLeftMax.toFixed(1) }}°</span>
|
||||
<span class="detail-head-text">右:{{ headPoseMaxValues.tiltRightMax.toFixed(1) }}°</span></div>
|
||||
<div style="margin-top: 15px;">最大俯仰角:
|
||||
<span class="detail-head-text">俯:{{ headPoseMaxValues.pitchDownMax.toFixed(1) }}°</span>
|
||||
<span class="detail-head-text">仰:{{ headPoseMaxValues.pitchUpMax.toFixed(1) }}°</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -406,6 +408,13 @@ const currentScreenshots = ref([])
|
||||
const previewScreenshot = ref(null)
|
||||
const videoPlayerRef = ref()
|
||||
const dialogVideoVisible = ref(false)
|
||||
const headPoseMaxValues = ref({
|
||||
rotationLeftMax: 0, // 旋转-左旋最大值
|
||||
rotationRightMax: 0, // 旋转-右旋最大值
|
||||
tiltLeftMax: 0, // 倾斜-左倾最大值
|
||||
tiltRightMax: 0, // 倾斜-右倾最大值
|
||||
pitchUpMax: 0, // 俯仰-上仰最大值
|
||||
pitchDownMax: 0 })
|
||||
const userInfo = reactive({
|
||||
username: '',
|
||||
avatar: ''
|
||||
@ -823,12 +832,25 @@ const playNewVideo = () => {
|
||||
const profileForm = ref({})
|
||||
function detectionById(row) {
|
||||
footPressure.value = {}
|
||||
headPoseMaxValues.value = {
|
||||
rotationLeftMax: 0, // 旋转-左旋最大值
|
||||
rotationRightMax: 0, // 旋转-右旋最大值
|
||||
tiltLeftMax: 0, // 倾斜-左倾最大值
|
||||
tiltRightMax: 0, // 倾斜-右倾最大值
|
||||
pitchUpMax: 0, // 俯仰-上仰最大值
|
||||
pitchDownMax: 0
|
||||
}
|
||||
|
||||
historyAPI.detectionById(row.id).then((response)=>{
|
||||
if(response.success){
|
||||
profileForm.value = response.data
|
||||
if(response.data.foot_data !=null){
|
||||
footPressure.value = response.data.foot_data
|
||||
}
|
||||
if(response.data.head_pose !=null){
|
||||
headPoseMaxValues.value = response.data.head_pose.headPoseMaxValues
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1513,7 +1535,7 @@ onMounted(() => {
|
||||
.foot-container-shuline{
|
||||
width: 0px;
|
||||
height: calc(100% + 20px);
|
||||
border-top: 1px dashed red;
|
||||
border-left: 1px dashed red;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@ -1524,7 +1546,7 @@ onMounted(() => {
|
||||
.foot-container-hengline{
|
||||
width: calc(100% + 20px);
|
||||
height: 0;
|
||||
border-left: 1px dashed red;
|
||||
border-top: 1px dashed red;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -10px;
|
||||
|
Loading…
Reference in New Issue
Block a user