alternative for function vision.VideoFileReader() for live video stream as input
Mostra commenti meno recenti
the input to function vision.VideoFileReader() is a video file. what is the alternative function to receive a live video stream as input? for example in this post how can I replace live video stream as input and estimate depth from live video stream?
Risposte (1)
Omar Crypps
il 13 Mar 2018
2 voti
After two years ... I faced this problem yesterday and this is my solution
1/ Change: "videoReader = vision.VideoFileReader('...avi')" by "videoReader = webcam(1)
2/ change " frame = step(videoReader) " by " frame = snapshot(videoReader)
3/ Change the While loop to an infinite loop
4/ Put in the While loop " frame = snapshot(videoReader)
I hope that it will be useful for someone
1 Commento
Ravindra Nadekar
il 1 Nov 2018
Modificato: Ravindra Nadekar
il 1 Nov 2018
frame = obj.reader.snapshot();% for reading snapshot i use this syntax I use this answer but the webcam is the start but nothing display when running the program
Categorie
Scopri di più su Video Formats and Interfaces in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!