Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using RTSP Camera instead of the WebCam #165

Open
Ahmad1Jaber opened this issue Jan 3, 2021 · 0 comments
Open

Using RTSP Camera instead of the WebCam #165

Ahmad1Jaber opened this issue Jan 3, 2021 · 0 comments

Comments

@Ahmad1Jaber
Copy link

How do I connect my RTSP IP camera instead of using the webcam, I tried using everything on the code below, help me if you've got the answer.

// Convenience function to setup a webcam
const flip = true; // whether to flip the webcam
webcam = new tmPose.Webcam(200, 200, flip); // width, height, flip
await webcam.setup(); // request access to the webcam
webcam.play();
window.requestAnimationFrame(loop);

    // append/get elements to the DOM
    const canvas = document.getElementById('canvas');
    canvas.width = 200; canvas.height = 200;
    ctx = canvas.getContext('2d');
@Ahmad1Jaber Ahmad1Jaber changed the title [FEATURE REQUEST]: Title Using RTSP Camera instead of the WebCam Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant