alternative for function vision.VideoFileReader() for live video stream as input
이전 댓글 표시
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?
답변 (1개)
Omar Crypps
2018년 3월 13일
2 개 추천
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
Ravindra Nadekar
2018년 11월 1일
편집: Ravindra Nadekar
2018년 11월 1일
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
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!