diff --git a/modules/highgui/src/cap_pvapi.cpp b/modules/highgui/src/cap_pvapi.cpp index 2fd9944f86..7b55531b62 100644 --- a/modules/highgui/src/cap_pvapi.cpp +++ b/modules/highgui/src/cap_pvapi.cpp @@ -107,7 +107,7 @@ protected: CvCaptureCAM_PvAPI::CvCaptureCAM_PvAPI() { - + monocrome=false; } void CvCaptureCAM_PvAPI::Sleep(unsigned int time) { @@ -255,6 +255,7 @@ IplImage* CvCaptureCAM_PvAPI::retrieveFrame(int) if (PvCaptureWaitForFrameDone(Camera.Handle, &(Camera.Frame), 1000) == ePvErrSuccess) { if (!monocrome) cvMerge(grayframe,grayframe,grayframe,NULL,frame); + printf("Frame ok\n"); return frame; } else return NULL;