
larschrjensen
Denmark
Asked
— Edited

Has any one had success with setting up a camera stream and saving a snapshot to a file using c++?
This is what I have so far:
EZ_B::EZB ^ezb;
ezb = gcnew EZ_B::EZB("MyEZB");
EZ_B::Camera ^ezbCam;
ezbCam = gcnew EZ_B::Camera(ezb);
ezbCam->StartCamera(EZ_B::Camera::GetVideoCaptureDevices()[1], 320, 240);
ezbCam->SaveImageAsJPEG("c:\test.jpg");
I can confirm that the camera is on by running:
BOOL camOK = ezbCam->Camera::IsActive;
cout << "Camera on? " << camOK << "\n";
What am I missing here?
Best, Lars
Okay, I'm being reminded that I need to assign credit. The issue was never really resolved, but ptp offered many suggestions so I think credit is due. Of course Sures helped as well!