Sending rendered video stream to openCV

asked 2016-04-02 23:29:20 -0600

skypickle gravatar image

Is there a way to use the output of a video game in real time as a stream to openCV?

Although I can open saved .avi files in openCV, I would rather just pipe the video stream of the frame buffer directly to openCV. Right now I have a webcam pointed at the screen and am capturing the webcam with

cap = cv2.VideoCapture(0)

edit retag flag offensive close merge delete

Comments

maybe this will help ( for windows & c++ )

sturkmen gravatar imagesturkmen ( 2016-04-03 12:33:34 -0600 )edit

thanks. now I have to figure out how to address a particular monitor since I have 2!

skypickle gravatar imageskypickle ( 2016-04-03 14:06:03 -0600 )edit