개발/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
반응형

'개발 > Application Develop' 카테고리의 다른 글

WPF DataBinding - INotifyPropertyChanged  (0) 2014.10.23
OpenCV IplImage->바이트 배열  (0) 2014.10.20
OpenCV 이미지 띄우기  (0) 2014.10.20
C++/CLI 기본 예제  (1) 2014.10.17
2. WPF + OpenCV(dll)  (2) 2014.10.11