AgoraIO / Basic-Video-Call

Sample app to join/leave a channel, mute/unmute, enable/disable the video, and switch between front/rear cameras.
MIT License
697 stars 1.01k forks source link

Extracting frames from live feed of user camera #343

Closed MuhammadAli511 closed 11 months ago

MuhammadAli511 commented 2 years ago

I am creating a web-based video conferencing app using ReactJS for Frontend and Flask for the Backend, I have to extract the frames of the live feed of the user camera to send it to my Deep Learning Model and provide my output. I want to know if are we able to extract the frames from Agora .io and if yes what is the method for it?

plutoless commented 1 year ago

using native platform can usually help you do this better. if you definitely want to do this on web, the video is rendered on video tag and you can use web api to render the frame on a canvas take a look at https://serversideup.net/capturing-an-image-from-an-html5-canvas-or-video-element/

MuhammadAli511 commented 11 months ago

Thanks, it was helpful