0

I'm making a posture analyser using TensorFlow Js and PoseNet. I've made up the code to analyse postures in real time from Webcam. How do I input a local video file to be analysed?

This is the code that loads in Webcam stream. I'm looking for a way to replace this webcam video input with local video file.

canvas.parent('videoContainer');
video = createCapture(VIDEO);
video.size(width, height);
desertnaut
  • 57,590
  • 26
  • 140
  • 166
devx
  • 9
  • 2

1 Answers1

0

To do so, one can use the tag video event listeners to get the video frames at a framerate chosen as indicated here. This is done completely client side.

The other options would be to do it server side. Using libraries such as ffmpeg, one can convert a video to images as used here

edkeveked
  • 17,989
  • 10
  • 55
  • 93