I'm trying to get frames from a IP camera using cv2.VideoCapture
function of Python OpenCV. I'm using PythonNet to retrieve this frames to a C# Console Application. But I can't retrieve the boolean and the image that return cv2.VideoCapture
in C# variables. Anyone knows how do it?
dynamic cap = cv2.VideoCapture("camerastream");
dynamic frame1 = cap.read;
So, I already know that frame1
have the output of cv2.VideoCapture
, that is a boolean and a numpy array. And that frame1
is a Python object type. But I don't know how to retrieve the boolean and the array from frame1
.