修改档案中足底压力,头部姿态数据

This commit is contained in:
limengnan 2025-09-01 18:36:24 +08:00
parent 62cf394af2
commit 61a673c862
2 changed files with 34 additions and 8 deletions

View File

@ -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({

View File

@ -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,14 +832,27 @@ 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
}
}
}).catch(()=>{
@ -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;