I am a student studying programming. I am not good at English, so I wrote it using a translator.
I'm studying the mediapipe. https://google.github.io/mediapipe/solutions/face_mesh
Do you know how to use local video instead of webcam?
let videoElement = document.querySelector(".input_video")
//@mediapipe/camera_utils/camera_utils.js"
const camera = new Camera(videoElement, {
onFrame: async () => {
await holistic.send({ image: videoElement });
},
width: 640,
height: 480,
});
camera.start();
This is the code to get the webcam. I think I need to change this code but I don't know how to work it.
so I tried to find out about '@mediapipe/camera_utils/camera_utils.js', I couldn't find any data.
And I found using the local video in the codepen demo. https://codepen.io/mediapipe/details/KKgVaPJ
But I don't know which part of the code to use.
Please teach me the way.