Software Development/Application Develop
OpenCV 동영상에서 원하는 프레임만 가져오기
huiyu
2014. 10. 20. 18:36
//동영상 파일을 불러온다 CvCapture* m_Capture; m_Capture = cvCreateFileCapture(fileName); //300번째 프레임을 불러온다 cvSetCaptureProperty(m_Capture, CV_CAP_PROP_POS_FRAMES, 300); cvGrabFrame(m_Capture); frame = cvRetrieveFrame(m_Capture); //프레임을 띄운다 cvShowImage("Example2", frame);
728x90