Hello.
I am doing a posenet implementation of ml5 and p5.js
Typical setup for the ML5 Posenet is as following:
function setup() {
const canvas = createCanvas(640, 480);
canvas.parent(‘videoContainer’);
video = createCapture(VIDEO);
video.hide()poseNet = ml5.poseNet(video, modelReady);
poseNet.on(‘pose’, function(results) {
poses = results;
});
I want to feed a 90 degree rotated video to the poseNet.
I looked at rotate function but it seems to be only applicable to draw() function and it does not affect the actual image getting passed into the neural network.
How can I pass a 90 degree rotated image from a webcam to the NN model?