📝 3D統合コード
hands.onResults((results) => {
if (results.multiHandLandmarks) {
for (const landmarks of results.multiHandLandmarks) {
const gesture = recognizeGesture(landmarks);
if (gesture) {
handleGesture(gesture, landmarks);
}
}
}
});
function handleGesture(gesture, landmarks) {
if (gesture === "グー") {
playGestureVideo(landmarks);
}
}