IPictureDisp to cv::Mat

asked 2014-01-03 03:48:40 -0600

maria_otago gravatar image

updated 2014-01-03 04:07:37 -0600

Hi everyone!

Does anybody know how to convert IPictureDisp to cv::Mat or to something understandable for OpenCV?

EDIT: I found out that actually I need to convert LPDISPATCH to cv::Mat somehow. Is it possible?

edit retag flag offensive close merge delete

Comments

what on earth is a IPictureDisp ? care to explain ?

berak gravatar imageberak ( 2014-01-03 04:07:18 -0600 )edit

IPictureDisp is some kind of LPDISPATCH. LPDISPATCH is the COM interface for automation. My FireWire camera returns frames as LPDISPATCH and I want to use them in OpenCV. I've never worked with COM interfaces, that is why I ask this question.

More general question is how to make my FireWire UniBrain camera work with OpenCV.

maria_otago gravatar imagemaria_otago ( 2014-01-03 04:20:58 -0600 )edit

with a bit of luck, you can use cv::VideoCapture(CV_CAP_FIREWIRE + cam_id) or CV_CAP_FIREWARE or CV_CAP_CMU1394 or CV_CAP_DC1394

berak gravatar imageberak ( 2014-01-03 04:35:17 -0600 )edit

I tried all this. It doesn't work. Sometimes I manage to stream from the camera. But then something brakes and I can't do it the second time. And I can't run two cameras at the same time.

maria_otago gravatar imagemaria_otago ( 2014-01-03 20:41:08 -0600 )edit