cv::Mat cvMatImage;
cv::VideoCapture m_VideoCaptureTest;
m_VideoCaptureTest.open(0);
if ( !m_VideoCaptureTest.isOpened() )
{printf("=====================zienon-opencv failed\n");
return 0;
}
for(int i=0;i<10;i++)
{m_VideoCaptureTest >> cvMatImage;
char pImagePath[128] = "";
sprintf(pImagePath,"./res/test%d.jpg",i);
cv::imwrite(pImagePath, cvMatImage);
}