Is there a way to read videos from internet?(Opencv.JS)
Hello guys.I am wondering about "How to read Videos frame by frame from internet (youtube,dailymotion...) using an url with OPENCV.js ?"
I do some research on google and i find this topic http://answers.opencv.org/question/24...
I try this mp4 url
VideoCapture cap;
cap.open(https://www.w3schools.com/html/mov_bbb.mp4);
But this code doesn't work on OPENCV.js
I think VideoCapture has different syntax on Opencv.JS and i can't find this syntax on opencv.JS documentation
can you take a look here ?
i'm not sure, but it looks like you have to have a
<video>
element on your page, and pass that to the VideoCapture, not any url (in js)How can I place a hidden(not display) video tag , set its source url with javascript when the user press Start button on the html and do image-processing on this video?
In your HTML you have to have a
<video></video>
tag, if want it to be hidden, just givestyle="display:none"
and thesrc
attribute should be the URL. Here is an exampleThen you can use
cap
like thisTake a look at this example