2011-10-12 58 views

回答

0
cv::Mat img; 
cv::VideoCapture capture("yourfile.avi"); 
while (img.rows > 0) 
{ 
    capture >> img; 
    cv::imwrite("c:/tmp/file.png", img); 
} 

夠簡單嗎?

相關問題