|
@@ -9,7 +9,6 @@
|
|
|
|
|
|
<script setup name="Basketball" lang="ts">
|
|
|
import { onMounted, ref, reactive, onBeforeUnmount } from 'vue';
|
|
|
-import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
|
|
|
const { proxy } = getCurrentInstance() as any;
|
|
|
const router = useRouter();
|
|
|
const emit = defineEmits(['confirmExit']);
|
|
@@ -96,32 +95,6 @@ const getInit = (e: any) => {
|
|
|
getCanvas();
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-/**
|
|
|
- * 查询姿态识别状态
|
|
|
-*/
|
|
|
-const getCheckBodypose = () => {
|
|
|
- let handcontroller_id = deviceInfo.value.handcontroller_id;
|
|
|
- //检查是否支持姿态识别
|
|
|
- checkBodypose(handcontroller_id);
|
|
|
-};
|
|
|
-
|
|
|
-/**
|
|
|
- * 关闭姿态识别
|
|
|
-*/
|
|
|
-const getCloseBodypose = () => {
|
|
|
- let handcontroller_id = deviceInfo.value.handcontroller_id;
|
|
|
- terminateBodypose(handcontroller_id);
|
|
|
- bodyposeState.value = false;
|
|
|
- speckCancel(); //停止播报
|
|
|
- setTimeout(() => {
|
|
|
- if (wsState.value) {
|
|
|
- closeWS();
|
|
|
- }
|
|
|
- }, 3000)
|
|
|
-};
|
|
|
-
|
|
|
-
|
|
|
const getCanvas = () => {
|
|
|
//过肩或者过鼻子都算投篮
|
|
|
let leftA = bodyposeData.value[6][1];//右肩Y
|