IPictureDisp to cv::Mat
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?
what on earth is a IPictureDisp ? care to explain ?
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.
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
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.