//pCap = cvCaptureFromFile(avi_name); pCap = cvCreateCameraCapture(-1); 采集的很卡,可以优化算法和改为dirctshow 实现采集。