OpenCV can capture from a SDL window in real time?

asked 2014-07-16 04:11:14 -0500

Hi all,

I would like to know if opencv can capture from a sdl window, and possibly getting some hints to do it as i'm very new with opencv?

Thanks.

edit retag flag offensive close merge delete

Comments

yes, it's possible. find out, how to get the pixels from the sdl surface, and make a cv::Mat of it:

Mat img( height, width, type, sdl_pixels );
berak gravatar imageberak ( 2014-07-16 06:01:41 -0500 )edit