Skip to content

Instantly share code, notes, and snippets.

@gergely-xyz
Created November 7, 2019 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergely-xyz/99e52f8b17ab117586872df3b3d86eec to your computer and use it in GitHub Desktop.
Save gergely-xyz/99e52f8b17ab117586872df3b3d86eec to your computer and use it in GitHub Desktop.
cv::Mat frame;
cv::VideoCapture vid("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov");
if (!vid.isOpened()) {
return -1;
}
while (vid.read(frame)) {
cv::imshow("Camera", frame);
if (cv::waitKey(25) >= 0) break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment