OpenCVForUnity
OpenCVForUnity copied to clipboard
how to open rtsp camera
how to open rtsp camera
I also have a question about this
It opens the camera but then locks up
capture.open("rtsp://admin:[email protected]:554/media/video1");
// Check if the camera is opened
if (!capture.isOpened())
{
UnityEngine.Debug.Log("Camera is not opened!");
return;
} else
{
UnityEngine.Debug.Log("Camera is opened!");
}
Mat mat = new Mat();
await Task.Delay(1000);
////////////// BELOW fails for some reason //////////////
//capture.grab();
bool frameRead = capture.read(mat);
UnityEngine.Debug.Log("frameRead: " + frameRead);
Has anyone figured it out?
It is possible to receive rtsp using ffmpeg.dll, although it is Windows-only. #142