|
@@ -285,9 +285,15 @@ export default {
|
|
this.updateMessage = false;
|
|
this.updateMessage = false;
|
|
},
|
|
},
|
|
async handsFind(video) {
|
|
async handsFind(video) {
|
|
- let hands = await this.detector.estimateHands(video, {
|
|
|
|
- flipHorizontal: false,
|
|
|
|
- });
|
|
|
|
|
|
+ let hands = []
|
|
|
|
+ try {
|
|
|
|
+ hands = await this.detector.estimateHands(video, {
|
|
|
|
+ flipHorizontal: false,
|
|
|
|
+ });
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(e);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
// console.log(hands);
|
|
// console.log(hands);
|
|
if (hands.length > 0 && this.isCamera) {
|
|
if (hands.length > 0 && this.isCamera) {
|
|
let handsA = hands[0].keypoints;
|
|
let handsA = hands[0].keypoints;
|